- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for bcdfghjklmnpqrstvwxz2456789 (0.18 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/rand/rand_test.go
*/ package rand import ( "math/rand" "strings" "testing" ) const ( maxRangeTestCount = 500 testStringLength = 32 ) func TestString(t *testing.T) { valid := "bcdfghjklmnpqrstvwxz2456789" for _, l := range []int{0, 1, 2, 10, 123} { s := String(l) if len(s) != l { t.Errorf("expected string of size %d, got %q", l, s) } for _, c := range s { if !strings.ContainsRune(valid, c) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 07 13:45:36 UTC 2021 - 2.5K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/rand/rand.go
rng.Lock() defer rng.Unlock() return rng.rand.Perm(n) } const ( // We omit vowels from the set of available characters to reduce the chances // of "bad words" being formed. alphanums = "bcdfghjklmnpqrstvwxz2456789" // No. of bits required to index into alphanums string. alphanumsIdxBits = 5 // Mask used to extract last alphanumsIdxBits of an int. alphanumsIdxMask = 1<<alphanumsIdxBits - 1
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 11 11:02:01 UTC 2018 - 3.5K bytes - Viewed (0)