Skip to content

Commit e099627

Browse files
committed
fix: use fmt.Errorf for error formatting in UUID seeding
1 parent a9bc7b7 commit e099627

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func UUID() string {
3232
// Setup seed & counter once
3333
uuidSetup.Do(func() {
3434
if _, err := rand.Read(uuidSeed[:]); err != nil {
35-
panic(fmt.Sprintf("utils: failed to seed UUID generator: %v", err))
35+
panic(fmt.Errorf("utils: failed to seed UUID generator: %v", err))
3636
}
3737
uuidCounter = binary.LittleEndian.Uint64(uuidSeed[:8])
3838
})

0 commit comments

Comments
 (0)