We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db1c63b commit 0616b14Copy full SHA for 0616b14
pkg/util/names/names.go
@@ -194,6 +194,8 @@
194
195
package names
196
197
+// revive:disable:line-length-limit
198
+
199
import (
200
"github.com/spaolacci/murmur3"
201
)
@@ -768,5 +770,7 @@ const murmurSeed = 6231912
768
770
769
771
func GetRandomName(seed string) string {
772
v := murmur3.Sum32WithSeed([]byte(seed), murmurSeed)
- return left[int(v & 0xffff)%len(left)] + "." + right[int(v >> 16 & 0xffff)%len(right)]
773
+ return left[int(v&0xffff)%len(left)] + "." + right[int(v>>16&0xffff)%len(right)]
774
}
775
776
+// revive:enable:line-length-limit
0 commit comments