Merge branch 'master' into kegan/client-webserver

This commit is contained in:
Kegan Dougal 2017-02-03 16:12:28 +00:00
commit c3d549f618
2 changed files with 6 additions and 1 deletions

2
vendor/manifest vendored
View file

@ -74,7 +74,7 @@
{ {
"importpath": "github.com/matrix-org/util", "importpath": "github.com/matrix-org/util",
"repository": "https://github.com/matrix-org/util", "repository": "https://github.com/matrix-org/util",
"revision": "2aeb7e5d047ec74d65353f1579990a1e90af5bb0", "revision": "0f4d9cce82badc0741ff1141dcf079312cb4d2f0",
"branch": "master" "branch": "master"
}, },
{ {

View file

@ -7,6 +7,7 @@ import (
"math/rand" "math/rand"
"net/http" "net/http"
"runtime/debug" "runtime/debug"
"time"
log "github.com/Sirupsen/logrus" log "github.com/Sirupsen/logrus"
) )
@ -152,3 +153,7 @@ func RandomString(n int) string {
} }
return string(b) return string(b)
} }
func init() {
rand.Seed(time.Now().UTC().UnixNano())
}