Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95119 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55991 invoked from network); 13 Aug 2016 15:53:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Aug 2016 15:53:21 -0000 Authentication-Results: pb1.pair.com header.from=fsb@thefsb.org; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=fsb@thefsb.org; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain thefsb.org designates 173.203.187.107 as permitted sender) X-PHP-List-Original-Sender: fsb@thefsb.org X-Host-Fingerprint: 173.203.187.107 smtp107.iad3a.emailsrvr.com Received: from [173.203.187.107] ([173.203.187.107:59958] helo=smtp107.iad3a.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 79/23-36656-0724FA75 for ; Sat, 13 Aug 2016 11:53:21 -0400 Received: from smtp22.relay.iad3a.emailsrvr.com (localhost [127.0.0.1]) by smtp22.relay.iad3a.emailsrvr.com (SMTP Server) with ESMTP id 902BAA00E9; Sat, 13 Aug 2016 11:53:18 -0400 (EDT) X-Auth-ID: fsb@thefsb.org Received: by smtp22.relay.iad3a.emailsrvr.com (Authenticated sender: fsb-AT-thefsb.org) with ESMTPSA id 763F3A00CB; Sat, 13 Aug 2016 11:53:18 -0400 (EDT) X-Sender-Id: fsb@thefsb.org Received: from yossy.local (c-66-30-62-12.hsd1.ma.comcast.net [66.30.62.12]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA) by 0.0.0.0:587 (trex/5.7.1); Sat, 13 Aug 2016 11:53:18 -0400 To: =?UTF-8?Q?Lauri_Kentt=c3=a4?= References: <3d8be1faf8d4d3e5add3768d7a8eb16c@k-piste.dy.fi> <08ad472d-45d6-f8a8-0774-2b5c93aabfb7@thefsb.org> Cc: internals@lists.php.net Message-ID: <64f21dfc-a2f7-e94d-cafd-e64d327391e2@thefsb.org> Date: Sat, 13 Aug 2016 11:53:18 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: mt_srand with array seed? From: fsb@thefsb.org (Tom Worster) On 8/12/16 2:48 PM, Lauri Kenttä wrote: > On 2016-08-12 21:40, Tom Worster wrote: >> mt_srand() will work. But what would be in the array? Integers from >> which the upper 32 bits, if they exist, are discarded? > > mt19937ar.c contains init_by_array. > Compability with that would probably be a good goal, > unless someone can point out another widely used implementation. Would mt_srand([1,2,3,4,5,6,7,8]) set the same seed on 32 and 64 bit machines? Tom