Skip to content

Commit

Permalink
Update AJAXChat.php
Browse files Browse the repository at this point in the history
Removed mt_srand and seed; seeding is performed automatically in PHP5+.
  • Loading branch information
MrSchism committed Jul 19, 2014
1 parent 60bbdf2 commit f1f974b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions chat/lib/class/AJAXChat.php
Original file line number Diff line number Diff line change
Expand Up @@ -1613,9 +1613,6 @@ function getSocketRegistrationID() {
}

function rollDice($sides) {
// seed with microseconds since last "whole" second:
mt_srand((double)microtime()*1000000);

return mt_rand(1, $sides);
}

Expand Down Expand Up @@ -3323,4 +3320,4 @@ function &getAllChannels() {
}

}
?>
?>

0 comments on commit f1f974b

Please sign in to comment.