Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98065 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71936 invoked from network); 31 Jan 2017 09:17:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Jan 2017 09:17:24 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@ohgaki.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@ohgaki.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ohgaki.net designates 180.42.98.130 as permitted sender) X-PHP-List-Original-Sender: yohgaki@ohgaki.net X-Host-Fingerprint: 180.42.98.130 ns1.es-i.jp Received: from [180.42.98.130] ([180.42.98.130:55402] helo=es-i.jp) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 96/90-51557-22650985 for ; Tue, 31 Jan 2017 04:17:23 -0500 Received: (qmail 11985 invoked by uid 89); 31 Jan 2017 09:17:18 -0000 Received: from unknown (HELO mail-wm0-f45.google.com) (yohgaki@ohgaki.net@74.125.82.45) by 0 with ESMTPA; 31 Jan 2017 09:17:18 -0000 Received: by mail-wm0-f45.google.com with SMTP id v77so84040227wmv.0 for ; Tue, 31 Jan 2017 01:17:17 -0800 (PST) X-Gm-Message-State: AIkVDXKTNVmxeGzsBel7NI2IpIo6fAzCzapelzz5rxTgahHa205RUPK8UVgdtyF8/Oe+hHW1zQu93tzQCyXS8A== X-Received: by 10.28.230.194 with SMTP id e63mr18098960wmi.25.1485854230833; Tue, 31 Jan 2017 01:17:10 -0800 (PST) MIME-Version: 1.0 Received: by 10.195.12.8 with HTTP; Tue, 31 Jan 2017 01:16:30 -0800 (PST) In-Reply-To: References: Date: Tue, 31 Jan 2017 18:16:30 +0900 X-Gmail-Original-Message-ID: Message-ID: To: "Christoph M. Becker" Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a1147c8249df89f05476065a8 Subject: Re: Reseeding rand()/mt_rand() From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a1147c8249df89f05476065a8 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Christoph, On Mon, Jan 30, 2017 at 10:20 PM, Christoph M. Becker wrote: > Just a quick idea: > > > class PNRG { > public function __construct($seed =3D null) {=E2=80=A6} > public function get() {=E2=80=A6} > } > 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 --001a1147c8249df89f05476065a8--