summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2014-05-30 23:13:50 +0200
committerKevin Chabowski <kevin@kch42.de>2014-05-30 23:13:50 +0200
commit49bb411e8322ca0a8c833d115d6d70922c5aa226 (patch)
treecff6aa1a1451bfc51be4430b80e00cee4411cbd0
parent7a2601f657e04e90e63fe917bfa0726f7bf0eb8c (diff)
downloadsimplechat-49bb411e8322ca0a8c833d115d6d70922c5aa226.tar.gz
simplechat-49bb411e8322ca0a8c833d115d6d70922c5aa226.tar.bz2
simplechat-49bb411e8322ca0a8c833d115d6d70922c5aa226.zip
Actually random randomness
-rw-r--r--main.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.go b/main.go
index 43c5561..f61700f 100644
--- a/main.go
+++ b/main.go
@@ -6,7 +6,9 @@ import (
"github.com/kch42/simplechat/chat"
"log"
"math"
+ "math/rand"
"net/http"
+ "time"
)
var (
@@ -17,6 +19,8 @@ var (
)
func main() {
+ rand.Seed(time.Now().UnixNano())
+
flag.Parse()
if *perroom < 0 {