Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72054 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5826 invoked from network); 3 Feb 2014 08:13:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Feb 2014 08:13:30 -0000 Authentication-Results: pb1.pair.com smtp.mail=narf@devilix.net; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=narf@devilix.net; sender-id=pass Received-SPF: pass (pb1.pair.com: domain devilix.net designates 209.85.160.176 as permitted sender) X-PHP-List-Original-Sender: narf@devilix.net X-Host-Fingerprint: 209.85.160.176 mail-yk0-f176.google.com Received: from [209.85.160.176] ([209.85.160.176:50128] helo=mail-yk0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 03/15-15628-9AF4FE25 for ; Mon, 03 Feb 2014 03:13:30 -0500 Received: by mail-yk0-f176.google.com with SMTP id 131so11562756ykp.7 for ; Mon, 03 Feb 2014 00:13:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=devilix.net; s=google; h=mime-version:date:message-id:subject:from:to:content-type; bh=igEJNhDSE556a/9Lkrt2LBgnHmdIfA3B86Egewl1Ghs=; b=FV/5LeK/fTf8m9oaLhZ3HpIozyCWTtMJ7vPuH1DzU9BcWtrnTXW8IyFkrSYw8bU2PE MZ+LTT4P0t1hQpXe5mx1Xz0xThzRIzc0i+ypG4DO8ZDrp6lp95vgkV/93IfRpE3uVfsR fg/I6hDTA0njYng5miVZ/+U1wBSyF1WqRE2I4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=igEJNhDSE556a/9Lkrt2LBgnHmdIfA3B86Egewl1Ghs=; b=ZdW2jRfjRa6ICfgHnLBbmWf5FBPUImnPJo7SrGicz0IzloirQxpnwS5sxwWwaXtZuy tcE4KvgT8YremkHmZGzcCXIG5lowW8fkijpMM0uLlcALZGOXF/jVCUGJ8kMxylvdZHEm MEbLPAsekBpanOL9yXDc8QV27itd4fSz6lt0ch7cdLA+yIWVmcV6mixzJghdgxobl7ia inly2sKBvIiRP8Ap0b3wCeKjs+za2815GGrTi4mpNliLzU7nu57MLHp2TM9NjDqvyGMw 6pq5Wx2Dk7KSWp/H8gCflRo5s6yrCEy5GHgjQRKvyzurKLVoXZ+T1WvKIMRvy+ZQn/WZ MaDg== X-Gm-Message-State: ALoCoQkp7G18WcxcTwpbh40uwjPoz2o1b+pBXT7Tw9+vR23aL/VTjN2Kbh59P7jDfpZ3zSvpxJfU MIME-Version: 1.0 X-Received: by 10.236.201.77 with SMTP id a53mr33281yho.104.1391415206953; Mon, 03 Feb 2014 00:13:26 -0800 (PST) Received: by 10.170.144.85 with HTTP; Mon, 3 Feb 2014 00:13:26 -0800 (PST) Date: Mon, 3 Feb 2014 10:13:26 +0200 Message-ID: To: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Extending uniqid() or not? From: narf@devilix.net (Andrey Andreev) Hi, I know this thread is about uniqid(), but MCrypt and OpenSSL extensions are already mentioned anyway. I think the underlying problem here is that PHP doesn't provide a cryptographically-secure PRNG generator by default. This might not be a concern for uniqid() in particular, but it certainly is a problem. Both of the above-mentioned extensions are optional and as such are not the go-to choice for randomness in most applications. The lack of a "by default" cryptography extension is another problem, but RNG is more important. Cheers, Andrey.