On 09 Dec 2011, at 09:39, Graeme Geldenhuys wrote:
Looking at the code again, I have no idea how it will affect the encryption algorithm if I move the assignment to RandSeed outside the loop
It will improve the randomness of the generated numbers. Changing the random seed all the time removes any properties the random generator normally has. In other words, the original code is wrong.
Jonas _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal