Re: Reseeding rand()/mt_rand()

From: Date: Tue, 31 Jan 2017 09:16:30 +0000
Subject: Re: Reseeding rand()/mt_rand()
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-98065@lists.php.net to get a copy of this message
Hi Christoph, On Mon, Jan 30, 2017 at 10:20 PM, Christoph M. Becker <cmbecker69@gmx.de> wrote: > Just a quick idea: > > <?php > > class PNRG { > public function __construct($seed = null) {…} > public function get() {…} > } > Object based implementation is a lot cleaner. I'm willing to write one but not now... I would like to make current API work better first. If anyone could write OO based predictable PRNG, I appreciate a lot! Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net

« previous php.internals (#98065) next »