summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-10-22 10:42:35 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-10-22 10:42:35 +0200
commit8d3826dc3143bffb048fe6867f3f9040914680c3 (patch)
tree1ec79add40d2b4009398135374bc0cedc21cbaba
parent4ede2e02e4ad64087012638064ef83a4d95bdaba (diff)
Seed UnixTime
-rw-r--r--philo.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/philo.go b/philo.go
index c849add..0256aeb 100644
--- a/philo.go
+++ b/philo.go
@@ -106,8 +106,7 @@ func prepare(n int) []chan bool {
}
func init() {
- now := time.Now().Unix()
- rand.Seed(now)
+ rand.Seed(time.Now().UnixNano())
}
func main() {