Skip to content

Commit

Permalink
mt_rand and rand are not pure
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Mar 26, 2021
1 parent d25ea5d commit edc8446
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/functionMetadata_original.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@
// continue functionMap.php, line 424
'count' => ['hasSideEffects' => false],
'sprintf' => ['hasSideEffects' => false],
'mt_rand' => ['hasSideEffects' => true],
'rand' => ['hasSideEffects' => true],

// methods
'DateTime::createFromFormat' => ['hasSideEffects' => false],
Expand Down
2 changes: 2 additions & 0 deletions resources/functionMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -1271,6 +1271,7 @@
'msgfmt_parse' => ['hasSideEffects' => false],
'msgfmt_parse_message' => ['hasSideEffects' => false],
'mt_getrandmax' => ['hasSideEffects' => false],
'mt_rand' => ['hasSideEffects' => true],
'net_get_interfaces' => ['hasSideEffects' => false],
'ngettext' => ['hasSideEffects' => false],
'nl2br' => ['hasSideEffects' => false],
Expand Down Expand Up @@ -1356,6 +1357,7 @@
'quoted_printable_encode' => ['hasSideEffects' => false],
'quotemeta' => ['hasSideEffects' => false],
'rad2deg' => ['hasSideEffects' => false],
'rand' => ['hasSideEffects' => true],
'range' => ['hasSideEffects' => false],
'rawurldecode' => ['hasSideEffects' => false],
'rawurlencode' => ['hasSideEffects' => false],
Expand Down

0 comments on commit edc8446

Please sign in to comment.