summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-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()