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 c3f8a1f commit a9bc7b7Copy full SHA for a9bc7b7
common.go
@@ -25,12 +25,12 @@ const toUpperTable = "\x00\x01\x02\x03\x04\x05\x06\a\b\t\n\v\f\r\x0e\x0f\x10\x11
25
26
var uuidSeed [24]byte
27
var uuidCounter uint64
28
-var UUIDSetup sync.Once
+var uuidSetup sync.Once
29
30
// UUID generates an universally unique identifier (UUID)
31
func UUID() string {
32
// Setup seed & counter once
33
- UUIDSetup.Do(func() {
+ uuidSetup.Do(func() {
34
if _, err := rand.Read(uuidSeed[:]); err != nil {
35
panic(fmt.Sprintf("utils: failed to seed UUID generator: %v", err))
36
}
0 commit comments