]> Cypherpunks repositories - gostls13.git/commit
crypto/rand: better panic message for invalid Int argument.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Thu, 18 Apr 2013 06:21:15 +0000 (23:21 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 18 Apr 2013 06:21:15 +0000 (23:21 -0700)
commitb08a3164c0a10b608db0e9fafcdc3c9168e3cffe
tree49e27cd9f62509171cd64f354f7ddfaf33a1c812
parent24555c7b8cfc11f47b0df7ab2add827c64ba3d19
crypto/rand: better panic message for invalid Int argument.

Also document the panic to be consistent with math/rand.

Fixes #5187.

R=golang-dev, dave, bradfitz, r
CC=golang-dev
https://golang.org/cl/8303043
src/pkg/crypto/rand/util.go