secureRand returns a cryptographically secure random number generator.
()
| 36 | |
| 37 | // secureRand returns a cryptographically secure random number generator. |
| 38 | func secureRand() (*insecurerand.Rand, *cryptoSource) { |
| 39 | var cs cryptoSource |
| 40 | //nolint:gosec |
| 41 | return insecurerand.New(&cs), &cs |
| 42 | } |
| 43 | |
| 44 | // Int64 returns a non-negative random 63-bit integer as a int64. |
| 45 | func Int63() (int64, error) { |