Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88392 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65173 invoked from network); 22 Sep 2015 00:52:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Sep 2015 00:52:01 -0000 Authentication-Results: pb1.pair.com header.from=scott@paragonie.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=scott@paragonie.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain paragonie.com from 209.85.215.43 cause and error) X-PHP-List-Original-Sender: scott@paragonie.com X-Host-Fingerprint: 209.85.215.43 mail-la0-f43.google.com Received: from [209.85.215.43] ([209.85.215.43:35199] helo=mail-la0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F1/11-56639-D26A0065 for ; Mon, 21 Sep 2015 20:51:58 -0400 Received: by lagj9 with SMTP id j9so79434929lag.2 for ; Mon, 21 Sep 2015 17:51:53 -0700 (PDT) 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=hrzbvL205TCHE5bXflAfvViWLEdDebQQQ85ir9wqvyE=; b=B0xye9ewkSok5671esHsjhhcxu+LI/1qNJgKBPJyntLjh5eDUVzTZjy3vEVe6MEAOX VuUCcE6QyOvgA7dYdjq8D2tMhJvca66z4rYb1a/BTMJmuWfbGgKLZe/PzDSUk1WVMy18 eBX2ctDlGA2RyYwggKQISq58D1bo4uoqA4bi138ojtJLZWDAUipVYzzypCkKI0QmrXxK R9a0sTyfur4ae9gDUrE+3xAyx97VH0CkB6Kh3tkMSG/osSWY5OodKX8NEUvzuLdjFjCS 9U13NlOxo23efwRmTDMt0cEHHw6bK7iG4v9SHndQmhAgERUAPVciJF7XVrgekdqKQO38 yQvw== X-Gm-Message-State: ALoCoQnGnwZLXFgGOaFPwjttg0Rv91qITah2JOboRhZ9/Y2v2pHzZcNmHeyZsKqzooGCFQw0SFND MIME-Version: 1.0 X-Received: by 10.152.22.201 with SMTP id g9mr8452293laf.97.1442883113289; Mon, 21 Sep 2015 17:51:53 -0700 (PDT) Received: by 10.114.79.105 with HTTP; Mon, 21 Sep 2015 17:51:53 -0700 (PDT) Date: Mon, 21 Sep 2015 20:51:53 -0400 Message-ID: To: PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Pull Request 1513 From: scott@paragonie.com (Scott Arciszewski) Hi, I wrote PR 1513 about two weeks ago to make the following enhancements to the CSPRNG feature in PHP 7: * Use getrandom(2) on new Linux kernels * When reading from /dev/urandom, make sure it's actually a character device * On Linux, make sure that the device has a major ID of 1 and a minor ID of 9 (which is the urandom device) * Removes /dev/arandom, as it was only available in deprecated versions of OpenBSD and modern versions will use arc4random_buf() anyway I'd greatly appreciate it if anyone could look over it, test it on weird machines, and let me know if it causes any issues. And then if we can get it merged by 7.0.0-RC4, I'd be estatic. https://github.com/php/php-src/pull/1513 Scott Arciszewski Chief Development Officer Paragon Initiative Enterprises