Message267909
This issue tracker has been migrated to GitHub,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | vstinner |
|---|---|
| Recipients | christian.heimes, vstinner |
| Date | 2016-06-08.22:13:09 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1465423989.69.0.136358630043.issue27272@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
PHP uses GENERATE_SEED() to initialize mt_rand(): https://github.com/php/php-src/blob/1c295d4a9ac78fcc2f77d6695987598bb7abcb83/ext/standard/php_rand.h#L50 This macro uses: time() (resolution of 1 second), process identifier, php_combined_lcg() php_combined_lcg() is seeded using: gettimeofday(), and getpid() or thread id in ZTS mode, gettimeofday() (called again after getpid()): https://github.com/php/php-src/blob/1c295d4a9ac78fcc2f77d6695987598bb7abcb83/ext/standard/lcg.c#L55 mt_rand(): https://github.com/php/php-src/blob/1c295d4a9ac78fcc2f77d6695987598bb7abcb83/ext/standard/rand.c#L308 |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2016-06-08 22:13:09 | vstinner | set | recipients: + vstinner, christian.heimes |
| 2016-06-08 22:13:09 | vstinner | set | messageid: <1465423989.69.0.136358630043.issue27272@psf.upfronthosting.co.za> |
| 2016-06-08 22:13:09 | vstinner | link | issue27272 messages |
| 2016-06-08 22:13:09 | vstinner | create | |