Re: Re: [RFC][DISCUSSION] Improve uniqid() uniqueness
| From: | Niklas Keller | Date: | Tue, 18 Oct 2016 06:36:26 +0000 |
| Subject: | Re: Re: [RFC][DISCUSSION] Improve uniqid() uniqueness | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-96406@lists.php.net to get a copy of this message | ||
Yasuo Ohgaki <yohgaki@ohgaki.net> schrieb am Di., 18. Okt. 2016, 02:21:
> Hi all,
>
> I committed this patch that simply use php_random_bytes() w/o any BC.
>
Doesn't this throw now in some environments where /dev/urandom isn't
readable?
Regards, Niklas
http://git.php.net/?p=php-src.git;a=commitdiff;h=48f1a17886d874dc90867c669481804de90509e8
>
> I thought there is php_random_int(), but it's not.
> So this is one of the best patch for this purpose.
>
> There is bug reports that request stronger uniqueness by default.
> I may address this issue, but I would like to fix other things for the
> time being.
>
> Regards,
>
> --
> Yasuo Ohgaki
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>