From 6b82fd94eb9f179d6cb5389af6b1531e6a3c1939 Mon Sep 17 00:00:00 2001 From: Plamen Todorov Date: Tue, 8 Oct 2019 20:24:31 +0300 Subject: [PATCH] randomize mqtt client id with math/rand Cryptographic randomizer is not required for mqtt clientIds. They should be unique only among currently selected clients. --- internal/endpoint/mqtt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/endpoint/mqtt.go b/internal/endpoint/mqtt.go index f4184725..98003675 100644 --- a/internal/endpoint/mqtt.go +++ b/internal/endpoint/mqtt.go @@ -3,7 +3,7 @@ package endpoint import ( "crypto/tls" "crypto/x509" - "crypto/rand" + "math/rand" "fmt" "io/ioutil" "sync"