ref: 718aeb83bd50ba72b3e1fc2e7cd6b3442e0ed79a
parent: 1d4eded8eeec929b5d376c675421ee79a09bf216
author: Andrew Chambers <andrewchamberss@gmail.com>
date: Sun Jan 17 16:42:16 EST 2016
fix randbytes
--- a/lib/std/rand.myr
+++ b/lib/std/rand.myr
@@ -183,7 +183,7 @@
;;
r = rand32(rng)
for ; n != buf.len; n++
- buf[n++] = (r & 0xff) castto(byte)
+ buf[n] = (r & 0xff) castto(byte)
r >>= 8
;;
-> n