On Tuesday, April 12, 2016, Pierre Joye <pierre....@gmail.com> wrote:

> On Apr 12, 2016 1:09 PM, "Sebastian Bergmann" <sebast...@php.net
> <javascript:;>> 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

Reply via email to