Skip to content

Commit 8f98e0b

Browse files
committed
Use correct string gen mode for generating device ID suffix
1 parent 8f23589 commit 8f98e0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sync/init.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
func DeviceIDGen(oldDeviceID string) (string, string) {
1818
// generate new device ID
1919
deviceIDPrefix, _ := os.Hostname()
20-
deviceIDSuffix := core.StringGen(rand.Intn(32)+48, 0.2, 0) + "-" + strconv.FormatInt(time.Now().Unix(), 10)
20+
deviceIDSuffix := core.StringGen(rand.Intn(32)+48, 0.2, 1) + "-" + strconv.FormatInt(time.Now().Unix(), 10)
2121
newDeviceID := deviceIDPrefix + "-" + deviceIDSuffix
2222

2323
// create new device ID file (locally)

0 commit comments

Comments
 (0)