summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2013-08-30 16:09:56 +0200
committerKevin Chabowski <kevin@kch42.de>2013-08-30 16:09:56 +0200
commit43bf81f08a064bbc2563c8e24f8a825100427b8e (patch)
tree6be29e719c1609324fc4ff6e510ca7b04ad4fea3
parent4965dac690a6499a9ee009280a5fc5ef9912c3ee (diff)
downloadmailremind-43bf81f08a064bbc2563c8e24f8a825100427b8e.tar.gz
mailremind-43bf81f08a064bbc2563c8e24f8a825100427b8e.tar.bz2
mailremind-43bf81f08a064bbc2563c8e24f8a825100427b8e.zip
Seeding the PRNG
-rw-r--r--main.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.go b/main.go
index 8b57a3c..632bde1 100644
--- a/main.go
+++ b/main.go
@@ -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()