Bug #10449 Updated: shuffle() function crashes PHP
| From: | yohgaki@php.net | Date: | Wed, 27 Feb 2002 02:51:28 +0000 |
| Subject: | Bug #10449 Updated: shuffle() function crashes PHP | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-1147@lists.php.net to get a copy of this message | ||
ID: 10449
Updated by: yohgaki@php.net
Reported By: sthurrowgood@yahoo.com.au
-Status: Analyzed
+Status: Feedback
Bug Type: Arrays related
Operating System: Solaris
PHP Version: 4.0.4pl1
New Comment:
Is this still a issue?
Reporter, could you update php version if you have problem with 4.1.1,
or close this bug if you have problem.
Thank you.
Previous Comments:
------------------------------------------------------------------------
[2001-10-21 01:30:06] sniper@php.net
This is another report about shuffle() problems.
And using mt_rand() would (IMO) be a good solution.
------------------------------------------------------------------------
[2001-04-23 01:24:14] sthurrowgood@yahoo.com.au
I know it is a known problem with the rand() implementation on some
systems - so my question is: Why not implement the shuffle function in
a way that does not stuff up on some systems e.g. use the mt_rand()
function with its known randomness and known random implementation -
and save everyone on Solaris systems (and possibly others) from having
to write their own shuffle functions (which I have be forced to do).
Thanks.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=10449&edit=1