Skip to content

Commit

Permalink
Use rand v1 package for Go 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
violog committed May 8, 2024
1 parent 64faac6 commit 67ed06e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/service/api/handlers/create_identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"encoding/pem"
"fmt"
"math/big"
"math/rand/v2"
"math/rand"
"net/http"
"strconv"
"strings"
Expand Down Expand Up @@ -233,7 +233,7 @@ func CreateIdentity(w http.ResponseWriter, r *http.Request) {
}

if count > 0 {
allowed := rand.IntN(cfg.MultiAccMaxLimit-cfg.MultiAccMinLimit+1) + cfg.MultiAccMinLimit
allowed := rand.Intn(cfg.MultiAccMaxLimit-cfg.MultiAccMinLimit+1) + cfg.MultiAccMinLimit
if count >= allowed {
err = masterQ.Claim().FilterBy("document_hash", documentHash).Update(data.Claim{IsBanned: true})

Expand Down

0 comments on commit 67ed06e

Please sign in to comment.