forked from mirror/go.uuid
Fixes bug: epochStart is being added twice
This commit is contained in:
parent
c78c1486a4
commit
bfd6674638
2
uuid.go
2
uuid.go
|
@ -169,7 +169,7 @@ func (u *UUID) SetVariant() {
|
|||
|
||||
// Returns UUID epoch timestamp
|
||||
func getTimestamp() uint64 {
|
||||
timeNow := epochStart + epochFunc()
|
||||
timeNow := epochFunc()
|
||||
// Clock changed backwards since last UUID generation.
|
||||
// Should increase clock sequence.
|
||||
if timeNow <= lastTime {
|
||||
|
|
Loading…
Reference in New Issue