DB -> tnRandom += ( 0.3141285793 * seconds() * pnSeed )
Obviously, having seconds() in there means it's not truly random.
In fact, one of the security problems with earlier versions of Netscape
were precisely this. They'd used the computers' clock to help generate
an encoding key, and that allowed it to be cracked.
I think it's generally accepted that a computer cannot generate a true
random number. They generate pseudo-random numbers, which is usually
good enough.
I just read an article on some guy who developed a method to check
accounting records, principally check amounts and receipts, to see if
they were genuine. People were making up receipts and checks when they
got called in for an IRS audit (Internal Revenue Service, the tax agency
in the US).
He discovered that when someone forges an amount, they can never
generate random amounts, as would happen in real life. There's always
some sort of pattern, which allows a determination of forgery.
The IRS loves him.
Raymond Pesek
* 1st 2.00 #2448 * Moderator - Clipper Echo
--- InterEcho 1.19
---------------
* Origin: PC-Ohio PCBoard * Cleveland, OH * 216-381-3320 (1:157/200)
|