Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68774 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36457 invoked from network); 31 Aug 2013 01:31:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Aug 2013 01:31:38 -0000 Authentication-Results: pb1.pair.com header.from=bryan@ravensight.org; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=bryan@ravensight.org; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain ravensight.org from 209.85.219.45 cause and error) X-PHP-List-Original-Sender: bryan@ravensight.org X-Host-Fingerprint: 209.85.219.45 mail-oa0-f45.google.com Received: from [209.85.219.45] ([209.85.219.45:55835] helo=mail-oa0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DA/07-00443-97741225 for ; Fri, 30 Aug 2013 21:31:38 -0400 Received: by mail-oa0-f45.google.com with SMTP id m1so2447918oag.32 for ; Fri, 30 Aug 2013 18:31:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:references:in-reply-to:subject:date :message-id:mime-version:content-type:content-transfer-encoding :thread-index:content-language; bh=VqdYgDlXUR+oO6N2aWzXsGmqM+XjMOzVwbCR0CAC2SI=; b=ane3p2ECT7v8ZY7oV/PTp9YqgeoPvOBoAUEO53+YyRt0RAG2savxhTierxgtPVc+M/ x0gUTfbqzddAapejzVsDO8CXB3OiSnxGDQsCuPBu2bQy3R2BiNhcRDxagg1WY91WBe0+ k30pPDwt+XASA/DFVf2MR/qA9/G8BqmbbfbkpBPw2+10iJ2SEuHGzWjkkUj50s9m+/eP HSge4L1XrUF8Yzd1o7TUse9CpcYfdk6in95Sr9Cqs9Wy2K4dtwQ8fU1pAUQ8AH6xR4ek rMlJOArDe4Ul7pHW/xnBKRJ3GCx8uPsyPTtFa9pdAnzwGKeg+1GJFV+eO+w8JaiUhhQ7 iiqA== X-Gm-Message-State: ALoCoQmh+s+4N7VRIdiFae2KdSkuC56D6eH55t3M1H80MHLiT/L3H8wV3CsUUeX12HKpfL2tR0vf X-Received: by 10.60.45.65 with SMTP id k1mr8981897oem.48.1377912694971; Fri, 30 Aug 2013 18:31:34 -0700 (PDT) Received: from Genie (108-202-93-53.lightspeed.mssnks.sbcglobal.net. [108.202.93.53]) by mx.google.com with ESMTPSA id rr6sm1080075oeb.0.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 30 Aug 2013 18:31:34 -0700 (PDT) To: "'Leigh'" , "'Marc Bennewitz'" Cc: References: <521E64B6.30703@marc-bennewitz.de> <521F37E5.5040203@gmail.com> <5220F973.5000000@marc-bennewitz.de> In-Reply-To: Date: Fri, 30 Aug 2013 20:31:27 -0500 Message-ID: <001d01cea5e9$d15143d0$73f3cb70$@org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac6l2JO1Azxu0jflSSy4ySFzhbI04wAEEtvg Content-Language: en-us Subject: RE: [PHP-DEV] More powerful (and backward compatible) API of random number generator functions From: bryan@ravensight.org ("Bryan C. Geraghty") Actually, a better approach is to use /dev/urandom to seed a PRG. See my previous email in this thread regarding the FIPS approved generators. Bryan -----Original Message----- From: Leigh [mailto:leight@gmail.com] Sent: Friday, August 30, 2013 6:27 PM To: Marc Bennewitz Cc: internals@lists.php.net Subject: Re: [PHP-DEV] More powerful (and backward compatible) API of random number generator functions On 30 August 2013 20:58, Marc Bennewitz wrote: > what is the best algorithm? Well that is platform dependant. For example on FreeBSD you'd hope /dev/random was used (which does not block like linux, and generates a crypto quality pseudo-random stream) Point being, "best" is not easily defined by a constant.