Update to Go 1.23 (#73)

This commit is contained in:
Cubicroot 2024-10-20 23:34:05 +02:00 committed by GitHub
parent 35f957332b
commit 15ea2935be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 139 additions and 162 deletions

View file

@ -13,9 +13,9 @@ var (
)
func randIntn(n int) int {
max := big.NewInt(int64(n))
maxValue := big.NewInt(int64(n))
res, err := rand.Int(rand.Reader, max)
res, err := rand.Int(rand.Reader, maxValue)
if err != nil {
panic("random source is not available")
}