Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:43255 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38703 invoked from network); 4 Mar 2009 15:44:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Mar 2009 15:44:13 -0000 Authentication-Results: pb1.pair.com smtp.mail=kkooporation@googlemail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kkooporation@googlemail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 209.85.200.168 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: kkooporation@googlemail.com X-Host-Fingerprint: 209.85.200.168 wf-out-1314.google.com Received: from [209.85.200.168] ([209.85.200.168:3843] helo=wf-out-1314.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1D/92-25985-CC1AEA94 for ; Wed, 04 Mar 2009 10:44:12 -0500 Received: by wf-out-1314.google.com with SMTP id 23so3438541wfg.26 for ; Wed, 04 Mar 2009 07:44:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type; bh=SpvwKeOwLPsHFx+89v6BP9zzakNJgA03GuPtQYSwiZE=; b=SEhAjgdfTNfk2b2xN0c7OPev/hQW88KTmAymLQwBtJa0qUtW/4YeWkvtb+cBG0Sw4u 3e4OO9upjh+lsr+T2/VghQgiZvrvrosTXLErVuZZ7TxOs5rk4ppyIG9MtUiQNKlAsS7i J62mbNviueTYt7ReHc06I83WhRazXq0oNXiDA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=OWEJDsaZtoGjl20vtlEgMhJ/xgo8JW4JambZaaKXh3v7AnKBE1DDufynv5xS9EZEgQ xSxVeWutkbwV7V5LQ/+nAQ+ZcUu0I1njH8fSRL/pzcaMvL/U568oy8Ly0+vCU1bWDB4y XFbNUQG/FVCqmZaUN4jXIFP46d+9prQ8jPQ4w= MIME-Version: 1.0 Sender: kkooporation@googlemail.com Received: by 10.142.230.9 with SMTP id c9mr7218wfh.101.1236181449732; Wed, 04 Mar 2009 07:44:09 -0800 (PST) In-Reply-To: <10AC7A40-1A8B-46E0-A27D-96A2EA97A077@php.net> References: <10AC7A40-1A8B-46E0-A27D-96A2EA97A077@php.net> Date: Wed, 4 Mar 2009 16:44:09 +0100 X-Google-Sender-Auth: dd818efa2ab9d6fb Message-ID: To: Stefan Walk Cc: Pierre Joye , PHP internals Content-Type: multipart/alternative; boundary=000e0cd17d6a3072df04644ceca8 Subject: Re: [PHP-DEV] Really random ? From: kureal@kkooporation.de (Kenan Sulayman) --000e0cd17d6a3072df04644ceca8 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Guess you're right ;-D Thanks! -- (c) Kenan Sulayman Freelance Designer and Programmer Life's Live Poetry 2009/3/4 Stefan Walk > > On 4 Mar 2009, at 15:46, Kenan Sulayman wrote: > > Hey Pierre! >> >> Didn't I included the mt_rand function in my tests ? >> >> Quote: "Average of mersenne twister in 8016909 it's is 1073848211.4106 ( >> corresponding to that in 8503575 it's the avg. is 1073904131.0286)." >> >> The mail was meant to make the rand(x) function more good; >> I already use the mt_rand() function, but why should the rand(x) function >> still be used, if it's so freakin' insecure ? >> > > I hope that by "insecure" you don't imply that you're using those > pseudorandom generators for cryptography purposes. As the manual states, > rand() uses the libc rand(), which can be desirable if you want to generate > the same sequence of numbers across languages. And you don't need to > complain about its drawbacks, because they are well-known (see < > http://en.wikipedia.org/wiki/Linear_congruential_generator#Advantages_and_disadvantages_of_LCGs>). > If you want "secure" random numbers, use something that at least tries to > utilize "real" entropy. But that topic has nothing to do with the > development of PHP ... > > Regards, > Stefan > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --000e0cd17d6a3072df04644ceca8--