Search found 1666 matches

by deltarho[1859]
Mar 16, 2019 12:27
Forum: Windows
Topic: Encrypternet on the Web
Replies: 4
Views: 142

Re: Encrypternet on the Web

Someone contacted me the other day and referred to my Seattle scenario on the website and asked what other uses Encrypternet may have. Well, a lot of folks are now working from home nowadays rather than an office. We could have, say, a dozen employees working from home and live hundreds of miles fro...
by deltarho[1859]
Mar 14, 2019 14:56
Forum: Windows
Topic: Encrypternet on the Web
Replies: 4
Views: 142

Re: Encrypternet on the Web

If we click on the deltarho icon at the bottom left of the Encrypternet form we see "Special thanks to José Roca (WinFBX Framework)". If we Google 'WinFBX' the first entry is 'GitHub - JoseRoca/WinFBX: Windows Framework for FreeBASIC'. Not everyone will do that but it is the sort of thing ...
by deltarho[1859]
Mar 14, 2019 14:35
Forum: Windows
Topic: Encrypternet on the Web
Replies: 4
Views: 142

Re: Encrypternet on the Web

dodicat wrote:Did you mention powerbasic on your previous website?

No. I didn't have a particular reason for not doing so nor with Encrypternet.

The language used for an application published on the web is not normally mentioned.

If anyone contacted me and asked what I used I would be happy to tell them.
by deltarho[1859]
Mar 14, 2019 12:04
Forum: Windows
Topic: Encrypternet on the Web
Replies: 4
Views: 142

Encrypternet on the Web

There have been some changes to the version developed here and much of the Help file has been rewritten. There are two versions: 32-bit and 64-bit. The 64-bit version is a little faster on decryption. I have held off changing the 'engine' but did so making the random 'password' generation more effic...
by deltarho[1859]
Mar 10, 2019 9:09
Forum: General
Topic: Alternative for Randomize Timer
Replies: 4
Views: 216

Re: Alternative for Randomize Timer

but is it really necessary to have good randomness of the seed? I decided to search the Internet for confirmation of my response and found a consensus of comments to the contrary saying that a random seed is not necessary - uniqueness is though. Using a cryptographic seed is OK as it satisfies the ...
by deltarho[1859]
Mar 09, 2019 2:33
Forum: Tips and Tricks
Topic: Code size
Replies: 5
Views: 247

Re: Code size

Hi jj. I also looked at gcc using -Wc -O3. Your post has had 64 views but no response. I wonder if others are struggling as I am in that the knowledge gained by your code has little, if any use, in practice. I am reminded of the last few lines of the opening to 'The Picture of Dorian Gray' by Oscar ...
by deltarho[1859]
Mar 02, 2019 20:25
Forum: General
Topic: how can you separate this string please
Replies: 8
Views: 290

Re: how can you separate this string please

And I know you will all be splitting your sides chuckling at my tribulations. I'm not. Anyway, great excuse for a brand new box from Ebay. With a system backup, you would not have to do that. These are my backups, on an external SSD. I use a slight compression on a full backup in the early hours of...
by deltarho[1859]
Mar 02, 2019 5:18
Forum: General
Topic: PCG32II Help file
Replies: 11
Views: 521

Re: PCG32II Help file

Very minor update. If we do not use GetSnapShot before using a SetSnapShot then we will not get a sequence repeat. Fairly obvious really but although we can invoke GetSnapShot at any point in our code it will probably be used before we start to request any random numbers so that we can return to the...
by deltarho[1859]
Feb 27, 2019 19:05
Forum: General
Topic: Alternative for Randomize Timer
Replies: 4
Views: 216

Re: Alternative for Randomize Timer

but is it really necessary to have good randomness of the seed? I imagine the period of a PRNG to be a circle comprising a sequence. Randomize n, where n is fixed, gives us one entry point to the circle and the random numbers generated will be the same for each invocation of Randomize n. n as a var...
by deltarho[1859]
Feb 27, 2019 12:52
Forum: General
Topic: Alternative for Randomize Timer
Replies: 4
Views: 216

Re: Alternative for Randomize Timer

I looked at a variant as follows Sub RandomSeed( Byval algorithm as Byte = 0 ) Dim As Ulong Seed Asm rdtsc ' Get a number from the processor mov ebx, eax ' copy eax bswap eax ' invert to get the fast changing end xor eax, ebx mov dword Ptr [Seed], eax ' store it in Seed End Asm Randomize Seed, algor...
by deltarho[1859]
Feb 25, 2019 1:13
Forum: General
Topic: Alternative for Randomize Timer
Replies: 4
Views: 216

Alternative for Randomize Timer

I spotted this in some code by Steve Hutchesson at the PowerBASIC forums and wrote a Sub wrapper for it. The default algorithm is for the current language dialect and so is 3 for -lang fb. Sub RandomSeed( Byval algorithm as Byte = 0 ) Dim As Ulong Seed Asm rdtsc ' Get a number from the processor bsw...
by deltarho[1859]
Feb 23, 2019 16:49
Forum: Beginners
Topic: Random numbers not the same
Replies: 26
Views: 698

Re: Random numbers not the same

What are you deliberating over at this point? Being very analytical sees me turning over more stones looking for trouble than most people do. <smile> crucial for the shuffle algorithm to be able to reach all permutations I agree but is that necessary from a shuffling perspective? If a set of number...
by deltarho[1859]
Feb 23, 2019 12:17
Forum: Beginners
Topic: Random numbers not the same
Replies: 26
Views: 698

Re: Random numbers not the same

More thought experiments. Suppose we have a set of 100 elements and we have a self-swap at element number 53, say. The chance of that is 47 to 1 ( 100-53+1-1 ) against. However, what is the chance of the previous 52 elements not swapping with the 53rd element? I am not even going to try and work tha...
by deltarho[1859]
Feb 22, 2019 23:52
Forum: Beginners
Topic: Random numbers not the same
Replies: 26
Views: 698

Re: Random numbers not the same

but also shows that only two permutations of six are attainable. I was never concerned about all possible permutations, only those which did not have self_swapping. My second thought experiment above has convinced me that self_swapping should be allowed. It is more to do with perception than anythi...
by deltarho[1859]
Feb 22, 2019 22:47
Forum: Beginners
Topic: Random numbers not the same
Replies: 26
Views: 698

Re: Random numbers not the same

@counting_pine I guess I'm really not sure what is meant here by the idea of 'Rnd = 0'. I don't see any special significance, compared to, say, 'Rnd = 1e-9'. There isn't. We would get Swap a(n), a(n) if Rnd was sufficiently small. I ran your code and got Self-swaps allowed: 0 1 2 1 0 2 2 1 0 0 2 1 1...

Go to advanced search