- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for randomInt63 (0.15 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/rand/rand.go
rng.Lock() defer rng.Unlock() randomInt63 := rng.rand.Int63() remaining := maxAlphanumsPerInt for i := 0; i < n; { if remaining == 0 { randomInt63, remaining = rng.rand.Int63(), maxAlphanumsPerInt } if idx := int(randomInt63 & alphanumsIdxMask); idx < len(alphanums) { b[i] = alphanums[idx] i++ } randomInt63 >>= alphanumsIdxBits remaining-- } return string(b)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 11 11:02:01 UTC 2018 - 3.5K bytes - Viewed (0)