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?

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to