diff options
author | Kevin Chabowski <kevin@kch42.de> | 2013-08-30 16:09:56 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2013-08-30 16:09:56 +0200 |
commit | 43bf81f08a064bbc2563c8e24f8a825100427b8e (patch) | |
tree | 6be29e719c1609324fc4ff6e510ca7b04ad4fea3 | |
parent | 4965dac690a6499a9ee009280a5fc5ef9912c3ee (diff) | |
download | mailremind-43bf81f08a064bbc2563c8e24f8a825100427b8e.tar.gz mailremind-43bf81f08a064bbc2563c8e24f8a825100427b8e.tar.bz2 mailremind-43bf81f08a064bbc2563c8e24f8a825100427b8e.zip |
Seeding the PRNG
-rw-r--r-- | main.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -9,7 +9,9 @@ import ( "github.com/kch42/simpleconf" _ "kch42.de/gostuff/mailremind/model/mysql" "log" + "math/rand" "net/http" + "time" ) func debug(rw http.ResponseWriter, req *http.Request) { @@ -56,6 +58,8 @@ func main() { log.Fatalf("Could not get web.baseurl from config: %s", err) } + rand.Seed(time.Now().UnixNano()) + initSessions() initTpls() loadTimeLocs() |