From 8f98e0b57784e8bd7858728297d905e8a708f7e9 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Mon, 21 Apr 2025 17:59:53 -0400 Subject: [PATCH] Use correct string gen mode for generating device ID suffix --- sync/init.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sync/init.go b/sync/init.go index 65e0418..ed3dda2 100644 --- a/sync/init.go +++ b/sync/init.go @@ -17,7 +17,7 @@ import ( func DeviceIDGen(oldDeviceID string) (string, string) { // generate new device ID deviceIDPrefix, _ := os.Hostname() - deviceIDSuffix := core.StringGen(rand.Intn(32)+48, 0.2, 0) + "-" + strconv.FormatInt(time.Now().Unix(), 10) + deviceIDSuffix := core.StringGen(rand.Intn(32)+48, 0.2, 1) + "-" + strconv.FormatInt(time.Now().Unix(), 10) newDeviceID := deviceIDPrefix + "-" + deviceIDSuffix // create new device ID file (locally)