Rename NoCache() to Nonce()

This commit is contained in:
2023-12-12 00:00:38 -06:00
parent ac8a11538b
commit 4cb6b10226
2 changed files with 9 additions and 8 deletions
+2 -1
View File
@@ -61,7 +61,8 @@ func RandomString(n int) string {
return string(b)
}
func NoCache() string {
// Nonce returns a string made up of the current time in milliseconds, Unix epoch/UTC
func Nonce() string {
return strconv.Itoa(int(time.Now().UnixMilli()))
}