diff --git a/stdlib/random.sun b/stdlib/random.sun index ea54f5a..16eab03 100644 --- a/stdlib/random.sun +++ b/stdlib/random.sun @@ -5,10 +5,12 @@ * 2016 arookas \* ================================================= */ +import "ssc/common.sun"; + var local next; function srand(seed) { - next = seed; + next = int(seed); } function rand() {