ref: b56e495ba86c5fdded2486b15c1ac04fed79608f
parent: 2f3123a05d6bf7cb556dfb0d6aa93b2008049868
author: Ori Bernstein <ori@eigenstate.org>
date: Fri Dec 2 12:15:11 EST 2016
We never actually got entropy. Face. Meet palm. You two are going to be good friends.
--- a/lib/crypto/rand.myr
+++ b/lib/crypto/rand.myr
@@ -75,6 +75,8 @@
const stir = {
var entropy : byte[40]
+
+ getentropy(entropy[:])
rekey(entropy[:])
std.slfill(entropy[:], 0)
std.slfill(buf[:], 0)