Re: 63/64 bit version of Delphi's function random( aRange : integer ) : integer; ?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


sci.crypt archive

Re: 63/64 bit version of Delphi's function random( aRange : integer ) : integer; ?

From: Skybuck Flying <spam@hotmail.com>
Date: Sat Apr 29 2006 - 13:42:58 CEST

The idea of using multiple calls to random is bogus.

Just see what happens with input where only 1 bit is set... and this bit
happens to fall on the first bit once it's shifted....

All other things will be zero... and only one channel will be 1.. so than
it's like asking a random(1) thing.

It's utter crap I tell you !

Bye,
  Skybuck.
Received on Mon May 1 02:06:02 2006