Skip to content

Commit

Permalink
Make the uuid truly unique
Browse files Browse the repository at this point in the history
Signed-off-by: Tong Li <[email protected]>
  • Loading branch information
Tong Li committed Jan 30, 2020
1 parent 650150d commit e1ee7f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/gosdk/utilities/paramGenerator.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ type UUID struct {
}

func (p *UUID) GetValue() string {
id, _ := uuid.NewRandom()
rand.Seed(time.Now().UnixNano())
id, _ := uuid.NewUUID()
return strings.Replace(id.String(), "-", "", -1)
}

Expand Down

0 comments on commit e1ee7f3

Please sign in to comment.