mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Add Randomizer::getBytesFromString()
method (#9664)
* Add `Randomizer::getBytesFromAlphabet()` method * Rename `getBytesFromAlphabet` to `getBytesFromString` * [ci skip] Add NEWS/UPGRADING for Randomizer::getBytesFromString() Co-authored-by: Tim Düsterhus <tim@bastelstu.be>
This commit is contained in:
parent
1b503a1f52
commit
ac3ecd03af
11 changed files with 238 additions and 7 deletions
|
@ -74,6 +74,8 @@ PHPAPI double php_combined_lcg(void);
|
|||
|
||||
# define MT_N (624)
|
||||
|
||||
#define PHP_RANDOM_RANGE_ATTEMPTS (50)
|
||||
|
||||
PHPAPI void php_mt_srand(uint32_t seed);
|
||||
PHPAPI uint32_t php_mt_rand(void);
|
||||
PHPAPI zend_long php_mt_rand_range(zend_long min, zend_long max);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue