Bug #10449 Updated: shuffle() function crashes PHP

From: Date: Sun, 21 Oct 2001 05:30:06 +0000
Subject: Bug #10449 Updated: shuffle() function crashes PHP
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-68579@lists.php.net to get a copy of this message
ID: 10449 Updated by: sniper Reported By: sthurrowgood@yahoo.com.au Old Status: Open Status: Analyzed Bug Type: Arrays related Operating System: Solaris PHP Version: 4.0.4pl1 New Comment: This is another report about shuffle() problems. And using mt_rand() would (IMO) be a good solution. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.dev (#68579) next »