ref: ba6a34ede9eb9e706c09fc7a3159157b3412a6ba
parent: 1d4eded8eeec929b5d376c675421ee79a09bf216
parent: 718aeb83bd50ba72b3e1fc2e7cd6b3442e0ed79a
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Jan 16 19:50:27 EST 2016
Merge pull request #46 from andrewchambers/randbytes 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