summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/matterbridge/Rocket.Chat.Go.SDK/realtime/client.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2020-12-06 17:23:37 +0100
committerGitHub <noreply@github.com>2020-12-06 17:23:37 +0100
commit9dba3d538588746536c29863baa5837557402a39 (patch)
tree5682d3807de5a5089518d679a4860f8fc9aadbff /vendor/github.com/matterbridge/Rocket.Chat.Go.SDK/realtime/client.go
parent2d3c26a4b218279d169da106032a70d3d80c4a53 (diff)
downloadmatterbridge-msglm-9dba3d538588746536c29863baa5837557402a39.tar.gz
matterbridge-msglm-9dba3d538588746536c29863baa5837557402a39.tar.bz2
matterbridge-msglm-9dba3d538588746536c29863baa5837557402a39.zip
Update rocketchat vendor (#1327)
Contains fixes for #992 and adds more random ID
Diffstat (limited to 'vendor/github.com/matterbridge/Rocket.Chat.Go.SDK/realtime/client.go')
-rw-r--r--vendor/github.com/matterbridge/Rocket.Chat.Go.SDK/realtime/client.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/github.com/matterbridge/Rocket.Chat.Go.SDK/realtime/client.go b/vendor/github.com/matterbridge/Rocket.Chat.Go.SDK/realtime/client.go
index 1dde80bf..45a6a05d 100644
--- a/vendor/github.com/matterbridge/Rocket.Chat.Go.SDK/realtime/client.go
+++ b/vendor/github.com/matterbridge/Rocket.Chat.Go.SDK/realtime/client.go
@@ -92,5 +92,5 @@ func (c *Client) Close() {
// Some of the rocketchat objects need unique IDs specified by the client
func (c *Client) newRandomId() string {
- return fmt.Sprintf("%f", rand.Float64())
+ return fmt.Sprintf("%x%x", rand.Uint64(), time.Now().UTC().UnixNano())
}