code: func getRandomBytes(r io.Reader, n int) []byte {
  	b := make([]byte, n)
  	_, err := r.Read(b)
  	if err != nil {
  		panic("Could not access secure random generator")
  	}
  
  	return b
  }
docs: // getRandomBytes gets secure random bytes.