update the codebase to latest go src (time, hash, strconv)
[epoint] / cmd / genpqg / genpqg.go
index 0bd80e3..f26f18e 100644 (file)
@@ -27,7 +27,7 @@ var r = &prng{[]byte{
 func (r *prng) Read(p []byte) (n int, err error) {
        h := sha1.New()
        h.Write(r.state)
-       r.state = h.Sum()
+       r.state = h.Sum(nil)
        n = copy(p, r.state)
        return
 }