提交 f87f7676 编写于 作者: K Kegan Dougal

Update matrix-org/util

上级 63d1bcd6
......@@ -74,7 +74,7 @@
{
"importpath": "github.com/matrix-org/util",
"repository": "https://github.com/matrix-org/util",
"revision": "2aeb7e5d047ec74d65353f1579990a1e90af5bb0",
"revision": "0f4d9cce82badc0741ff1141dcf079312cb4d2f0",
"branch": "master"
},
{
......
......@@ -7,6 +7,7 @@ import (
"math/rand"
"net/http"
"runtime/debug"
"time"
log "github.com/Sirupsen/logrus"
)
......@@ -152,3 +153,7 @@ func RandomString(n int) string {
}
return string(b)
}
func init() {
rand.Seed(time.Now().UTC().UnixNano())
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册