Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88072 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47890 invoked from network); 7 Sep 2015 02:09:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Sep 2015 02:09:11 -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.47 cause and error) X-PHP-List-Original-Sender: scott@paragonie.com X-Host-Fingerprint: 209.85.215.47 mail-la0-f47.google.com Received: from [209.85.215.47] ([209.85.215.47:34078] helo=mail-la0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2A/31-40368-5C1FCE55 for ; Sun, 06 Sep 2015 22:09:10 -0400 Received: by laeb10 with SMTP id b10so43826331lae.1 for ; Sun, 06 Sep 2015 19:09:06 -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=M91oyXLs2PuKQqjii8EMEscm9cjliosM7J3MZ9cYOm4=; b=Km7+vu+5FXFiHvnFA7v33Ia1mvWFEejaN1dptCE0qo247CVbqgPsJRhCPuUOl/OEb5 0DkEqSToNTRjGwK2N4uec8PyXtoX9iCM03rM5+c3LQBcu5o69Re1OKhHBgp7xmWDnQfc 8XRppmB7xbVF19vTG83UUTxAYlhGeUZmQlEv4+WUO84kFTWo27h4XbmmuNR6D+L8TA4k uTbXg3br+Bz+3vsQ4OeslDEI+aj2g9pttR80YeTDh3PJmYknNlKViZoRTdRqfOU0Ct33 PdrewaUSKaXeheZUKBrXvnEXGNZTGNklO8pdD3baGCj/9KuWiDUrFcOaOHwS44amRyHs JukA== X-Gm-Message-State: ALoCoQnAkoPBk8MNyX5e22qEG7LNf9cIEaTUF6hCysinJ6p5Mrn9fD9i8yhuaP5vFNT0gxXW56nX MIME-Version: 1.0 X-Received: by 10.152.37.196 with SMTP id a4mr14914138lak.59.1441591746538; Sun, 06 Sep 2015 19:09:06 -0700 (PDT) Received: by 10.114.202.196 with HTTP; Sun, 6 Sep 2015 19:09:06 -0700 (PDT) Date: Sun, 6 Sep 2015 22:09:06 -0400 Message-ID: To: PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: random_compat 1.0.0 From: scott@paragonie.com (Scott Arciszewski) The RFC to make random_* throw exceptions and errors has passed, which has removed the only blocker from declaring the API stable. https://github.com/paragonie/random_compat/releases/tag/v1.0.0 The random_compat library exposes a compatible interface for PHP 7's CSPRNG functions in PHP 5 projects. This should allow developers to sanely generate random byte strings and integers today and have it work with the native PHP 7 functions tomorrow. Feel free to use this in any project. We published it under the MIT license because we want the community to be free to use it for whatever purpose, even commercial. If there's still a problem, let me know if something else (WTFPL?) would work better for your needs. Scott Arciszewski Chief Development Officer Paragon Initiative Enterprises