Support for typical php mt_rand default seeds:
Đang mở
enhancement
- Ngôn ngữ chính
- C++
- Star
- 390
- Fork
- 40
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
PHP apps that implicitly seed their mt_rand do so according to the algorithm here:
http://lxr.php.net/xref/PHP_5_4/ext/standard/php_rand.h#46
```
#define GENERATE_SEED() (((long) (time(0) * getpid())) ^ ((long) (1000000.0 * php_combined_lcg(TSRMLS_C))))
```
There's not a whole lot of entropy in the unix timestamp of the server start plus PID. This would make breaking PHP apps that use implicit seeding a lot easier.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.