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