]> Cypherpunks repositories - gostls13.git/commit
crypto/rand: use io.ReadFull in test
authorIan Lance Taylor <iant@golang.org>
Wed, 25 Apr 2012 04:36:42 +0000 (21:36 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 25 Apr 2012 04:36:42 +0000 (21:36 -0700)
commit990f3af72b36ac8d9a78b8b8621d248af490f8be
tree3ac07767a51cec8facfaf9afbf99e7d49428ab8b
parent52f122d72ee3fab46603ccd76259d1f9db50be7b
crypto/rand: use io.ReadFull in test

On Solaris versions before Solaris 11, the kernel will not
return more than 1040 on a single read from /dev/urandom.

R=golang-dev, agl, bradfitz, rsc, iant, dchest
CC=golang-dev
https://golang.org/cl/6113046
src/pkg/crypto/rand/rand_test.go