Example about crypto/rand in Go
        Posted  
        
            by nevalu
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by nevalu
        
        
        
        Published on 2010-04-18T14:45:41Z
        Indexed on 
            2010/04/18
            15:13 UTC
        
        
        Read the original article
        Hit count: 441
        
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)
        © Stack Overflow or respective owner