Skip to content

Better rand()#1977

Merged
Alkarex merged 1 commit intoFreshRSS:devfrom
ColonelMoutarde:patch-9
Aug 23, 2018
Merged

Better rand()#1977
Alkarex merged 1 commit intoFreshRSS:devfrom
ColonelMoutarde:patch-9

Conversation

@ColonelMoutarde
Copy link
Copy Markdown
Contributor

http://php.net/manual/en/function.mt-rand.php

from php Doc

"Many random number generators of older libcs have dubious or unknown characteristics and are slow. The mt_rand() function is a drop-in replacement for the older rand(). It uses a random number generator with known characteristics using the » Mersenne Twister, which will produce random numbers four times faster than what the average libc rand() provides. "

http://php.net/manual/en/function.mt-rand.php

from php Doc

"Many random number generators of older libcs have dubious or unknown characteristics and are slow. The mt_rand() function is a drop-in replacement for the older rand(). It uses a random number generator with known characteristics using the » Mersenne Twister, which will produce random numbers four times faster than what the average libc rand() provides. "
@Alkarex Alkarex added this to the 1.12.0 milestone Aug 23, 2018
@Alkarex Alkarex merged commit 34d8be0 into FreshRSS:dev Aug 23, 2018
@Alkarex Alkarex mentioned this pull request Aug 23, 2018
@Alkarex Alkarex modified the milestones: 1.12.0, 1.11.2 Sep 3, 2018
mdemoss pushed a commit to mdemoss/FreshRSS that referenced this pull request Mar 25, 2021
http://php.net/manual/en/function.mt-rand.php

from php Doc

"Many random number generators of older libcs have dubious or unknown characteristics and are slow. The mt_rand() function is a drop-in replacement for the older rand(). It uses a random number generator with known characteristics using the » Mersenne Twister, which will produce random numbers four times faster than what the average libc rand() provides. "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants