Ensure the seed is an integer
This commit is contained in:
parent
b71a38bb34
commit
8246538bbb
1 changed files with 3 additions and 1 deletions
|
@ -5,10 +5,12 @@
|
|||
* 2016 arookas
|
||||
\* ================================================= */
|
||||
|
||||
import "ssc/common.sun";
|
||||
|
||||
var local next;
|
||||
|
||||
function srand(seed) {
|
||||
next = seed;
|
||||
next = int(seed);
|
||||
}
|
||||
|
||||
function rand() {
|
||||
|
|
Loading…
Reference in a new issue