On 2017-01-07 03:15, Yasuo Ohgaki wrote:
+ php_random_int(1000000000, 9999999999, &rand, 1);
This should be
+ php_random_int(0, 9999999999, &rand, 1);
No, it shouldn't. That fixes none of the reported problems. You still
have too many numbers (integer overflow) and still produce 0.abcdefgh
instead of a.bcdefghi.
If you can't fix it, maybe you shouldn't be doing it in the first
place...
--
Lauri Kenttä
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php