()
| 56 | } |
| 57 | |
| 58 | func randomKey() string { |
| 59 | randBytes := make([]byte, 32) |
| 60 | _, err := rand.Read(randBytes) |
| 61 | if err != nil { |
| 62 | panic(fmt.Errorf("Error generating random cache key: %w", err)) |
| 63 | } |
| 64 | return hex.EncodeToString(randBytes) |
| 65 | } |
no test coverage detected