Skip to content

better rand()#1978

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

better rand()#1978
Alkarex merged 1 commit intoFreshRSS:devfrom
ColonelMoutarde:patch-10

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 7072c09 into FreshRSS:dev Aug 23, 2018
@Alkarex
Copy link
Copy Markdown
Member

Alkarex commented Aug 23, 2018

Thanks :-)
(Note that from PHP 7.1, rand() is an alias of mt_rand()).

@Alkarex
Copy link
Copy Markdown
Member

Alkarex commented Aug 23, 2018

@ColonelMoutarde Pourriez-vous vous ajouter à https://github.com/FreshRSS/FreshRSS/blob/dev/CREDITS.md ? :-)

Note : Il serait mieux de faire une PR avec l'ensemble des modifications qui vont ensemble plutôt que des PR séparées pour chaque fichier (#1977 , #1976). N'hésitez pas à demander si quelque chose bloque.

@ColonelMoutarde
Copy link
Copy Markdown
Contributor Author

Ok thanks

@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