Monday, March 30, 2009

BUG? srand() is seeded with a constant in Security::cipher()

Later calls to shuffle() or other functions which do not use the
mt_srand() seed then return the same predictable results time and time
again.

Shouldn't the seed be set to a new seed at the end of the function
before the return? This behavior is in the latest version of CakePHP
and has been in for awhile.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: