Re: [PHP-DEV] UUID

2016-04-12 Thread Pierre Joye
On Tue, Apr 12, 2016 at 8:40 PM, Remi Collet wrote: > Perhaps, no need to reinvent the wheel... > > There is already 2 uuid extensions > > - the one provided in the libuuid sources > - the pecl one : https://pecl.php.net/package/uuid > > No need to create more confusion. > > If something missing,

Re: [PHP-DEV] UUID

2016-04-12 Thread Remi Collet
Perhaps, no need to reinvent the wheel... There is already 2 uuid extensions - the one provided in the libuuid sources - the pecl one : https://pecl.php.net/package/uuid No need to create more confusion. If something missing, just add it in the existing pecl ext. If needed, open a RFC to merge

Re: [PHP-DEV] UUID

2016-04-12 Thread Colin O'Dell
> > I would prefer not to refer to random to avoid any confusion with the > recent added random function. As uuid is not crypto safe and is not aimed > to. Users will then hopefully not think about using instead of the random > api. > > Also uuid alone may be a problem (bc?) It sounds like a logica

Re: [PHP-DEV] UUID

2016-04-12 Thread Pierre Joye
On Apr 12, 2016 7:56 PM, "Colin O'Dell" wrote: > > On Tue, Apr 12, 2016 at 2:09 AM 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

Re: [PHP-DEV] UUID

2016-04-12 Thread Colin O'Dell
On Tue, Apr 12, 2016 at 2:09 AM 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/rand

Re: [PHP-DEV] UUID

2016-04-12 Thread Matteo Beccati
Hi, On 12/04/2016 09:59, Pierre Joye wrote: >> Alternatively and maybe more portable, libuuid (should be part of all >> decent systems too) could be a first choice. > > Forgot to mention: https://pecl.php.net/package/uuid > >> BSD also provides >> compliant APIs as part of their libc >> (https:/

Re: [PHP-DEV] UUID

2016-04-12 Thread Leszek Krupinski
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 gr

Re: [PHP-DEV] UUID

2016-04-12 Thread Pierre Joye
On Tue, Apr 12, 2016 at 2:52 PM, 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 i

Re: [PHP-DEV] UUID

2016-04-12 Thread Pierre Joye
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/u

[PHP-DEV] UUID

2016-04-11 Thread Sebastian Bergmann
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 th