Skip to content

Commit

Permalink
Use mt_rand() instead of rand() for better randomness.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhil committed Jan 8, 2016
1 parent 0a59431 commit 2779a7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Underscore/Underscore.php
Expand Up @@ -2470,7 +2470,7 @@ public static function random($min, $max = null)
if ($max === null)
list($min, $max) = [0, $min];

return rand($min, $max);
return mt_rand($min, $max);
}

/**
Expand Down

0 comments on commit 2779a7f

Please sign in to comment.