Hi! > The manual explicitly guarantees that code should not rely on the > random number generator being predictable.
Where exactly does it say that? The only note I've found is this: http://php.net/manual/en/function.mt-srand.php 5.2.1 The Mersenne Twister implementation in PHP now uses a new seeding algorithm by Richard Wagner. Identical seeds no longer produce the same sequence of values they did in previous versions. This behavior is not expected to change again, but it is considered unsafe to rely upon it nonetheless. Which just says we could change PRNG behavior between versions, and nothing about PRNG not being predictable. > If people want their existing code to continue to work, we could of > course allow this new API to support the C stdlib rand() as an > algorithm for BC reasons. But such code was never supposed to work in > this first place. If it works, breaking it should have a very good reason. I don't see any reason to break srand(). -- Stas Malyshev smalys...@gmail.com -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php