]> Cypherpunks repositories - gostls13.git/commit
crypto/rand: simplify example to exploit properties of ReadFull
authorRob Pike <r@golang.org>
Mon, 12 Aug 2013 02:52:23 +0000 (12:52 +1000)
committerRob Pike <r@golang.org>
Mon, 12 Aug 2013 02:52:23 +0000 (12:52 +1000)
commitce00562607e0967ea8329aa4728a5bf4e1a8e666
treee88889b3dac01b3eed87f29569616dfae83a476f
parent24c8035fbe113dfe644f4419eadcb826e08788ee
crypto/rand: simplify example to exploit properties of ReadFull
No need for the complex condition.
Fixes #6089

R=golang-dev, mischief, adg
CC=golang-dev
https://golang.org/cl/12731043
src/pkg/crypto/rand/example_test.go