Update matrix-org/util

This commit is contained in:
Kegan Dougal 2017-02-03 16:12:18 +00:00
parent 63d1bcd66a
commit f87f7676bb
2 changed files with 6 additions and 1 deletions

View file

@ -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())
}