Closed (duplicate)
Project:
Drupal core
Version:
7.x-dev
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Apr 2010 at 17:36 UTC
Updated:
5 Apr 2010 at 13:44 UTC
Jump to comment: Most recent file
Comments
Comment #1
1sp commentedThis warning occurs on many webhosts (especially free ones).
On inspecting the code, I found out the getmypid() is only being used for getting a random number for $random_state variable.
So, this getmypid() call can easily be replaced by a mt_rand() call which will cause the warning to disappear.
I am attaching a patch which fixes this warning.
Comment #2
jbrown commentedIt isn't necessary for $random_state to be seeded - mt_rand() is seeded automatically internally.
Comment #3
pwolanin commentedsupplying a different fix at: http://drupal.org/node/723802#comment-2807690
Comment #4
jbrown commented