fix_: encryption.GetCurrentTime implementation

This commit is contained in:
Igor Sirotin 2024-05-09 00:25:51 +01:00 committed by Vit∀ly Vlasov
parent da12c52596
commit d8a5665871
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ const keyBumpValue = uint64(10)
// GetCurrentTime64 returns the current unix time in milliseconds // GetCurrentTime64 returns the current unix time in milliseconds
func GetCurrentTime() uint64 { func GetCurrentTime() uint64 {
return (uint64)(time.Now().UnixNano() / int64(time.Millisecond)) return (uint64)(time.Now().UnixNano() / int64(time.Second))
} }
// bumpKeyID takes a timestampID and returns its value incremented by the keyBumpValue // bumpKeyID takes a timestampID and returns its value incremented by the keyBumpValue