code: func getRandom(i int) string {
  	b := make([]byte, i)
  	for {
  		// keep trying till we get it
  		if _, err := rand.Read(b); err != nil {
  			continue
  		}
  		return fmt.Sprintf("%x", b)
  	}
  }
docs: // getRandom generates a random byte slice