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: Fri Apr 28 2006 - 11:42:06 CEST

Well one last thing which makes me wonder is the IMUL instruction which is
for signed bits...

A really easy way to test if random is at least a little bit safe is simply
use unsigned integers etc...

Some remaining questions are about the period/module/whatever etc... but
since everything just wraps around that's probably ok as well...

Well my time's up for today.

Must go do other stuff..

I am goddamn rusty but it's quite funny as well.

Me looking differently at/towards things hmm.

Bye,
  Skybuck ;)
Received on Mon May 1 02:05:35 2006