Re: rand(), mt_rand() and limits

From: Date: Mon, 12 Jan 2015 00:32:55 +0000
Subject: Re: rand(), mt_rand() and limits
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-80394@lists.php.net to get a copy of this message
Hi all, On Mon, Jan 12, 2015 at 7:12 AM, Andrea Faulds <ajf@ajf.me> wrote: > * Use a 64-bit random number generation algorithm on 64-bit platforms > (or invoke the 32-bit generator twice) Comment for those who does not know 64 bit version of MT rand, please read http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt64.html With this algorithm, 32bit and 64bit machines get different random number with the same seed. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net

« previous php.internals (#80394) next »