Index: src/pkg/crypto/rand/rand_unix.go |
=================================================================== |
--- a/src/pkg/crypto/rand/rand_unix.go |
+++ b/src/pkg/crypto/rand/rand_unix.go |
@@ -12,6 +12,7 @@ |
import ( |
"bufio" |
"crypto/aes" |
+ "crypto/cipher" |
"io" |
"os" |
"sync" |
@@ -66,7 +67,7 @@ |
type reader struct { |
mu sync.Mutex |
budget int // number of bytes that can be generated |
- cipher *aes.Cipher |
+ cipher cipher.Block |
entropy io.Reader |
time, seed, dst, key [aes.BlockSize]byte |
} |