Fixes bug: epochStart is being added twice

This commit is contained in:
Andy Lindeman 2013-09-25 18:07:50 -04:00
parent c78c1486a4
commit bfd6674638
1 changed files with 1 additions and 1 deletions

View File

@ -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 {