* Create a random long integer */
()
| 261 | |
| 262 | /* Create a random long integer */ |
| 263 | func randInt() string { |
| 264 | min := int64(100000000000) |
| 265 | max := int64(999999999999) |
| 266 | // Range size |
| 267 | rangeSize := max - min + 1 |
| 268 | |
| 269 | n, err := rand.Int(rand.Reader, big.NewInt(rangeSize)) |
| 270 | if err != nil { |
| 271 | Print(err.Error(), Red) |
| 272 | return "999999999999" |
| 273 | } |
| 274 | |
| 275 | result := n.Int64() + min |
| 276 | return strconv.FormatInt(result, 10) |
| 277 | } |
| 278 | |
| 279 | func waitLimiter(identifier string) { |
| 280 | err := Config.Limiter.Wait(context.Background()) |
no test coverage detected