Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions version4.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ import guuid "github.com/google/uuid"
// equivalent to the odds of creating a few tens of trillions of UUIDs in a
// year and having one duplicate.
func NewRandom() UUID {
if gu, err := guuid.NewRandom(); err == nil {
return UUID(gu[:])
}
return nil
gu := guuid.Must(guuid.NewRandom())
return UUID(gu[:])
}