summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {