diff options
author | Kevin Chabowski <kevin@kch42.de> | 2014-05-30 23:13:50 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2014-05-30 23:13:50 +0200 |
commit | 49bb411e8322ca0a8c833d115d6d70922c5aa226 (patch) | |
tree | cff6aa1a1451bfc51be4430b80e00cee4411cbd0 | |
parent | 7a2601f657e04e90e63fe917bfa0726f7bf0eb8c (diff) | |
download | simplechat-49bb411e8322ca0a8c833d115d6d70922c5aa226.tar.gz simplechat-49bb411e8322ca0a8c833d115d6d70922c5aa226.tar.bz2 simplechat-49bb411e8322ca0a8c833d115d6d70922c5aa226.zip |
Actually random randomness
-rw-r--r-- | main.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 { |