Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68694 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 61111 invoked from network); 30 Aug 2013 02:31:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Aug 2013 02:31:28 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.53 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.215.53 mail-la0-f53.google.com Received: from [209.85.215.53] ([209.85.215.53:49197] helo=mail-la0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 85/28-10946-EF300225 for ; Thu, 29 Aug 2013 22:31:27 -0400 Received: by mail-la0-f53.google.com with SMTP id el20so1033889lab.26 for ; Thu, 29 Aug 2013 19:31:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=54PaBqdBmMsf+lyteE41kfiMe2Y8sK0HyNSyrLZ8Iuo=; b=SHbjdIN2CNW/LigdWmKvkU0h6pyNMPm3jHf9ynKmFmC7Jcaco/HTLBdiMjR9J5qF1Z w851iFt1pYM+n4nc2DinBFd1CsodsMxuRpEhY+H3YN90mYYSWqB4r4IZb5zwgJbIcYyD KqMy7hDj/KsuD8X6hYXlOIKcLnY4+IrYDoQ/AcmxwkDNfRguGFo/JSr+kj+9fT89VpxR 8NECT7cwE3GXYLnoQLugMFmd9ZL+Jxs/DhWbG8OANRPOTyx9L7jSyVKeLvydhRcTEk5X YgkgUchNf0WKEal9KJRVzQJ/jlR+xrtNH4d59MPFsqC2W/pPvM2PNW7q6ult9nZMSDHS Uuew== X-Received: by 10.112.9.195 with SMTP id c3mr94729lbb.33.1377829883959; Thu, 29 Aug 2013 19:31:23 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.112.154.201 with HTTP; Thu, 29 Aug 2013 19:30:43 -0700 (PDT) In-Reply-To: <521F37E5.5040203@gmail.com> References: <521E64B6.30703@marc-bennewitz.de> <521F37E5.5040203@gmail.com> Date: Fri, 30 Aug 2013 11:30:43 +0900 X-Google-Sender-Auth: F5O2Hg5BrlDneXVpkvVMeIzDbsA Message-ID: To: =?UTF-8?B?w4FuZ2VsIEdvbnrDoWxleg==?= Cc: Marc Bennewitz , PHP Internals Content-Type: multipart/alternative; boundary=001a1135e1f6cb5e9904e5210497 Subject: Re: [PHP-DEV] More powerful (and backward compatible) API of random number generator functions From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a1135e1f6cb5e9904e5210497 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, Aug 29, 2013 at 9:00 PM, =C3=81ngel Gonz=C3=A1lez wrote: > Marc Bennewitz wrote: > >> Idea for an RFC for a more powerful (and backward compatible) API of >> random number generator functions. >> >> The following psaudocode is self explained (hopfully) >> >> const RAND_ALGO_LIBC >> const RAND_ALGO_MERSENNE_TWISTER >> const RAND_ALGO_OPENSSL >> const RAND_ALGO_GMP >> > (...) > >> What do you think? >> > > Why do you want them? This proposal is good because we need the best random function available in a system with easy to use API. I would like to see the best algorithm in a system as default. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a1135e1f6cb5e9904e5210497--