pkg/rand/cryptorand.go
func MustGenerateRandomBytes(length int) []byte {
	res, err := GenerateRandomBytes(length)

	if err != nil {
		panic("Could not generate random bytes")
	}

	return res
}
func MustGenerateRandomBytes(length int) []byte {
	res, err := GenerateRandomBytes(length)

	if err != nil {
		panic("Could not generate random bytes")
	}

	return res
}
// MustGenerateRandomBytes generates random bytes or panics if it can't