True random number generator


Version: 1.0
Size:
184KB
Category:
Development
Delphi
Requirements:
No special requirements
Seller:
wuul
Price:
Free
System:
Windows 2003/XP/2000/98/Me/NT
Rating:
4.8
License:
Freeware

Description - True random number generator



Here`s my Attempt at creating a true random number generator in Delphi, suitable for generating encryption keys. I decided to try and write a proper random number generator in Delphi as I couldn`t seem to find one on the web. When generating encryption keys it is essential to use numbers that are truly random rather than the pseudo random number functions provided in most programming languages, as these pseudo random numbers are basically sequences that can be reconstructed in order to break the encryption keys. Generating random numbers sounds pretty simple, but it is actually a lot more difficult than you first imagine. Anyway, after quite a few attempts I managed to produce an Algorithm that appears to generate very random numbers. It uses a Combination of the position of your mouse, the least significant bits of the current time combined with some Details about the amount of free memory and swap space on your machine which seems to change very frequently in Windows. I would like to introduce even more random elements such as the times taken to read network traffic but for now this will do. The program is very simple, you enter the the number of random integers you would like the program to generate and the highest possible value, then move your mouse around and wait for it to generate the numbers. The algorithm blocks if you do not move your mouse as it needs the randomness of the current mouse cursor position. When it`s done it produces a table showing the frequency of the values generated.



More in Delphi-True random number generator

True Random Random Number Random Number Generator