]> Cypherpunks repositories - gostls13.git/commit
math/rand: make Rand fulfill the Reader interface
authorSpencer Nelson <s@spenczar.com>
Fri, 11 Sep 2015 17:41:45 +0000 (13:41 -0400)
committerRob Pike <r@golang.org>
Wed, 16 Sep 2015 17:54:01 +0000 (17:54 +0000)
commitf9e404c1c56065cc2140a06fc5f9d1fc640cfe0f
treeda823a0800620a97c6bf3ac4b61f3e9dd78e7e88
parent2421c6e3df9d593e9cb9bce24df9132fc9cf83b7
math/rand: make Rand fulfill the Reader interface

Add a Read function to Rand which reads random bytes into a buffer.

Fixes #8330

Change-Id: I85b90277b8be9287c6697def8dbefe0029b6ee06
Reviewed-on: https://go-review.googlesource.com/14522
Reviewed-by: Rob Pike <r@golang.org>
src/math/rand/rand.go
src/math/rand/rand_test.go
src/math/rand/regress_test.go