Example about crypto/rand in Go
- by nevalu
Could put a little example about the use of crypto/rand [1]?
The function Read has as parameter an array of bytes. Why? If it access to /dev/urandom to get the random data.
func Read(b []byte) (n int, err os.Error)
[1] http://golang.org/pkg/crypto/rand/