Skip to content

Commit

Permalink
change Uid 16 to 20
Browse files Browse the repository at this point in the history
  • Loading branch information
peifan-tes committed Jun 12, 2020
1 parent 8ee0ede commit 4ba45d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/uid/uid.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
//
// See: http://en.wikipedia.org/wiki/UUID#Random_UUID_probability_of_duplicates
func Uid() string {
id := make([]byte, 16)
id := make([]byte, 20)
_, err := io.ReadFull(rand.Reader, id)
if err != nil {
// This is probably an appropriate way to handle errors from our source
Expand Down

0 comments on commit 4ba45d8

Please sign in to comment.