php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10449 shuffle() function crashes PHP
Submitted: 2001-04-23 01:24 UTC Modified: 2002-04-03 00:00 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: sthurrowgood at yahoo dot com dot au Assigned:
Status: No Feedback Package: Arrays related
PHP Version: 4.0.4pl1 OS: Solaris
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sthurrowgood at yahoo dot com dot au
New email:
PHP Version: OS:

 

 [2001-04-23 01:24 UTC] sthurrowgood at yahoo dot com dot 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-21 01:30 UTC] sniper@php.net
This is another report about shuffle() problems.
And using mt_rand() would (IMO) be a good solution.

 [2002-02-26 21:51 UTC] yohgaki@php.net
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.
 [2002-04-03 00:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 28 09:01:28 2024 UTC