mirror of
https://github.com/pushbits/server.git
synced 2025-06-14 16:41:59 +02:00
Update to Go 1.23 (#73)
This commit is contained in:
parent
35f957332b
commit
15ea2935be
14 changed files with 139 additions and 162 deletions
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue