]> Cypherpunks repositories - gostls13.git/commit
runtime: use urandom instead of random
authorKeith Randall <khr@golang.org>
Thu, 8 Jan 2015 23:30:22 +0000 (15:30 -0800)
committerKeith Randall <khr@golang.org>
Fri, 9 Jan 2015 00:09:42 +0000 (00:09 +0000)
commit1de9c4073b7c0586c67279474bb373101d1964b8
tree43461935d3d46798533346415f89bfee6de3160f
parent5664eda73368fc146f24609f518da22cad0d0b2a
runtime: use urandom instead of random

Random is bad, it can block and prevent binaries from starting.
Use urandom instead.  We'd rather have bad random bits than no
random bits.

Change-Id: I360e1cb90ace5518a1b51708822a1dae27071ebd
Reviewed-on: https://go-review.googlesource.com/2582
Reviewed-by: Dave Cheney <dave@cheney.net>
Reviewed-by: Minux Ma <minux@golang.org>
src/runtime/os1_darwin.go
src/runtime/os1_freebsd.go
src/runtime/os1_linux.go
src/runtime/os3_solaris.go