Re: Use decent entropy for uniqid($prefix, TRUE)

From: Date: Mon, 09 Jan 2017 21:27:00 +0000
Subject: Re: Use decent entropy for uniqid($prefix, TRUE)
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.internals 
Request: Send a blank email to internals+get-97642@lists.php.net to get a copy of this message
On Tue, Jan 10, 2017 at 6:07 AM, Yasuo Ohgaki <yohgaki@ohgaki.net> wrote: > > BTW, it's surprising that I got roughly the same performance for both > php_combined_lcg() and php_random_int() with current system (Fedora 25). I > used to get little slower result for php_random_int() with Fedora 24. It > seems PRNG gets better. There is no advantage to use php_combined_lcg() on > newer systems. > Correction. I cannot understand the result so checked to see if something wrong. Sym link to php binary is broken :( I still get slower result with php_random_int(). It's cost of better entropy should be ignored. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net

« previous php.internals (#97642) next »