]> Cypherpunks repositories - gostls13.git/commit
math/rand: warn against using package for security-sensitive work
authorAndrey Petrov <andrey.petrov@shazow.net>
Thu, 30 Jul 2015 09:47:01 +0000 (11:47 +0200)
committerRob Pike <r@golang.org>
Thu, 30 Jul 2015 12:42:18 +0000 (12:42 +0000)
commit7cabaded5118883a8e038df6c4365cbca4df7f1e
treeb97a63afe0c9d2f86a1e8349df0ac6b99450af62
parentb7205b92c0a5ae985a3530dc8ad17e7d3a7a807d
math/rand: warn against using package for security-sensitive work

Urge users of math/rand to consider using crypto/rand when doing
security-sensitive work.

Related to issue #11871. While we haven't reached consensus on how
to make the package inherently safer, everyone agrees that the docs
for math/rand can be improved.

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