randomize mqtt client id with math/rand
Cryptographic randomizer is not required for mqtt clientIds. They should be unique only among currently selected clients.
This commit is contained in:
parent
c3b9a689bb
commit
6b82fd94eb
@ -3,7 +3,7 @@ package endpoint
|
|||||||
import (
|
import (
|
||||||
"crypto/tls"
|
"crypto/tls"
|
||||||
"crypto/x509"
|
"crypto/x509"
|
||||||
"crypto/rand"
|
"math/rand"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"sync"
|
"sync"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user