Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92213 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79614 invoked from network); 12 Apr 2016 08:10:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Apr 2016 08:10:06 -0000 Authentication-Results: pb1.pair.com smtp.mail=leafnode@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=leafnode@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.54 as permitted sender) X-PHP-List-Original-Sender: leafnode@gmail.com X-Host-Fingerprint: 209.85.215.54 mail-lf0-f54.google.com Received: from [209.85.215.54] ([209.85.215.54:34247] helo=mail-lf0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 74/F6-28094-C5DAC075 for ; Tue, 12 Apr 2016 04:10:05 -0400 Received: by mail-lf0-f54.google.com with SMTP id j11so14125540lfb.1 for ; Tue, 12 Apr 2016 01:10:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=iGQjc0RAuL1flswkti77AS3Bj2nOAE0V4bgbu2X3Aic=; b=la+dxM4ZmAMiygufiSitkGSSXFxiO55T8gy6qTp1ZWouPxMQRB3BI73sQ01ZIoH2tS XeT4YKiGwX04HPYcAof2MMRfCge5fuq9WPfKBKnWdQ3DggNaWM0T/BmX4DLc4PCZpk/2 2PZkmFWC6mCDkrI3KCA057IuW3nIxOVXSyr+8wjvd2ivp+DXtqbjOyFkQ1vVbkMQcFJC go0T7S4LCyy51ipdyjYVUX7OUtpVI0XraQZ4HqTZ6R1kn6hN3KFr4cCOPWYW/a79PWh+ aTAFU6VAI0cFNMNy7LTRIx7BRvjqx82SPj8WuURLEoJt0MxAeDXtstjNgWnFR03BFVOs UFQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=iGQjc0RAuL1flswkti77AS3Bj2nOAE0V4bgbu2X3Aic=; b=MiM7NwftDR5WLXRthHpOTEWsOiKztDG9KDsz+tu7ZMmoobOAA8+EaduSe7VLDxwUVt MJn5QPX8IF1y2rTSMYjdfcB+gePvecGFFzvkHGcewAIeJ+tJciHj18l/2EO/5bdI90VQ arCLBFkhBceaaR8SPxEpVrrS3jWeeVEEp09lsduq5wKbmKTEXowF11zXrBNM+G0dw2Dw 5H6o9J3yqPBwAHB5piQS0RIGg/IK1Km/o64SFzFfh8eLU9yTIo+uftrik4vyqBqLecJd E6QayUycKAnkR27fKvW3IcF19K7Cz4fj8ZiqRKFpl8lwUjfBkB8FpqKMkdt5OGJViEyt 92aQ== X-Gm-Message-State: AOPr4FV2MzlY/Kt8nqM4VyUSjjq41SN23oD7df4sn3APveSgXLfjEJtRR5Ys49q4TKeGUxJlgXbxqC17cHWzYg== MIME-Version: 1.0 X-Received: by 10.25.32.65 with SMTP id g62mr830681lfg.138.1460448601443; Tue, 12 Apr 2016 01:10:01 -0700 (PDT) Received: by 10.25.157.133 with HTTP; Tue, 12 Apr 2016 01:10:01 -0700 (PDT) In-Reply-To: References: <570C9101.5060500@php.net> Date: Tue, 12 Apr 2016 10:10:01 +0200 Message-ID: To: Pierre Joye Cc: Sebastian Bergmann , PHP internals Content-Type: multipart/alternative; boundary=001a114034761a120b053045304f Subject: Re: [PHP-DEV] UUID From: leafnode@gmail.com (Leszek Krupinski) --001a114034761a120b053045304f Content-Type: text/plain; charset=UTF-8 On Tuesday, April 12, 2016, Pierre Joye wrote: > On Apr 12, 2016 1:09 PM, "Sebastian Bergmann" > wrote: > > > > In PHP 7.0 we introduced random_bytes() which wraps Linux's getrandom(2) > > as well as Windows's CryptGenRandom() and uses /dev/urandom as a > fallback. > > > > I think it would be great if we added a function that wraps > > /proc/sys/kernel/random/uuid [2] and, if that exists, its equivalent on > > Windows to make the generation of UUIDs easy. > > > > Thoughts? > > Alternatively and maybe more portable, libuuid (should be part of all > decent systems too) could be a first choice. BSD also provides > compliant APIs as part of their libc > (https://www.freebsd.org/cgi/man.cgi?query=uuid for freebsd f.e.). On > Windows > > I have partially implemented bindings for libuuid into the core, I can finish it if you will. --Leszek --001a114034761a120b053045304f--