You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.
The intention of these functions is to generate a unique name, but we are using time.Now().Unix() which generates a number based on the same timestamp in seconds. The generated number will not be unique if we call this function multiple times in a short period or from different goroutines. It won't work even if we change it to time.Now().UnixNano().
We should fix these functions to use random number generator.
The text was updated successfully, but these errors were encountered:
The following util functions are buggy:
The intention of these functions is to generate a unique name, but we are using time.Now().Unix() which generates a number based on the same timestamp in seconds. The generated number will not be unique if we call this function multiple times in a short period or from different goroutines. It won't work even if we change it to time.Now().UnixNano().
We should fix these functions to use random number generator.
The text was updated successfully, but these errors were encountered: