// generateByteArray generates a base64 string of length length
generateByteArray generates a base64 string of length length
// generateByteArray generates a base64 string of length length
func generateByteArray(length int) []byte {
	base := new(big.Int)
	base.SetString("256", 10)
	tempKey := []byte{}
	var tempByte *big.Int
	for i := 0; i < length; i++ {
		tempByte, _ = rand.Int(rand.Reader, base)
		tempKey = append(tempKey, byte(tempByte.Uint64()))
	}
	return tempKey
}
func generateByteArray ( length int ) [ ] byte { base := new ( big . Int ) base . SetString ( " " , 10 ) tempKey := [ ] byte { } var tempByte * big . Int for i := 0 ; i < length ; i ++ { tempByte , _ = rand . Int ( rand . Reader , base ) tempKey = append ( tempKey , byte ( tempByte . Uint64 ( ) ) ) } return tempKey }
generateByteArray generates a base64 string of length length
generateByteArray generates a base64 string of length length