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:46:57 CEST

Lehmer's algorithm is bullshit as well.

Probably can't use it to get a decent range... it needs a prime etc... even
if overflow problems are prevented with mod 2^bit width than it will be
limited to the prime number I guess.

I can't use that. I want full 64 bit return values !

Bullshit I say Bullshit !

The only thing I could count on is Delphi's own random algorithm and trying
to extend that to int64 bit without stupid range check shit.

I'll probably have to write an assembler version of it to do it or so.

Maybe intel has an multiple instruction where the result is stored in two 64
bit registers so it's like a 128 bit multiple ;)

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