summaryrefslogtreecommitdiff
path: root/philo.go
diff options
context:
space:
mode:
Diffstat (limited to 'philo.go')
-rw-r--r--philo.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/philo.go b/philo.go
index 6945def..d5bc02a 100644
--- a/philo.go
+++ b/philo.go
@@ -6,6 +6,10 @@ import (
"time"
)
+func init() {
+ rand.Seed(time.Now().UnixNano())
+}
+
type Philo struct {
Name string
Left Fork