From e1ee7f3563d5cc1ab7c1d040dbba4dd111c4220f Mon Sep 17 00:00:00 2001 From: Tong Li Date: Thu, 30 Jan 2020 06:04:12 +0000 Subject: [PATCH] Make the uuid truly unique Signed-off-by: Tong Li --- modules/gosdk/utilities/paramGenerator.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/gosdk/utilities/paramGenerator.go b/modules/gosdk/utilities/paramGenerator.go index 9eb28d5..2eec588 100644 --- a/modules/gosdk/utilities/paramGenerator.go +++ b/modules/gosdk/utilities/paramGenerator.go @@ -49,7 +49,8 @@ type UUID struct { } func (p *UUID) GetValue() string { - id, _ := uuid.NewRandom() + rand.Seed(time.Now().UnixNano()) + id, _ := uuid.NewUUID() return strings.Replace(id.String(), "-", "", -1) }