|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51823 [FR] srand initialization seed
Submitted: 2010-05-14 16:45 UTC Modified: 2010-10-11 21:49 UTC
From: enki dot bilal at laposte dot net Assigned: jpauli (profile)
Status: Closed Package: Translation problem
PHP Version: 5.3.2 OS: ALL
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
18 + 7 = ?
Subscribe to this entry?

 [2010-05-14 16:45 UTC] enki dot bilal at laposte dot net
The srand documentation is flase in french.

In french the note since 4.2.0 says :
"Note : Depuis PHP 4.2.0, vous n'avez plus besoin d'initialiser le générateur de nombres aléatoires avec srand() ou mt_srand() car c'est fait automatiquement."

which meens that the function srand is useless 'cause it's done automaticly instead of saying that just the seed parameter is useless.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-05-18 11:03 UTC]
-Summary: srand initialization seed +Summary: [FR] srand initialization seed -Package: Documentation problem +Package: Translation problem
 [2010-10-11 21:49 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: jpauli
 [2010-10-11 21:49 UTC]
Fixed in online editor. Commit soon.

Thanks for the report.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jul 14 23:01:30 2024 UTC