Skip to content

Commit a9bc7b7

Browse files
committed
fix: rename UUIDSetup to uuidSetup for consistency
1 parent c3f8a1f commit a9bc7b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ const toUpperTable = "\x00\x01\x02\x03\x04\x05\x06\a\b\t\n\v\f\r\x0e\x0f\x10\x11
2525

2626
var uuidSeed [24]byte
2727
var uuidCounter uint64
28-
var UUIDSetup sync.Once
28+
var uuidSetup sync.Once
2929

3030
// UUID generates an universally unique identifier (UUID)
3131
func UUID() string {
3232
// Setup seed & counter once
33-
UUIDSetup.Do(func() {
33+
uuidSetup.Do(func() {
3434
if _, err := rand.Read(uuidSeed[:]); err != nil {
3535
panic(fmt.Sprintf("utils: failed to seed UUID generator: %v", err))
3636
}

0 commit comments

Comments
 (0)