From e6a5cd63e6391b102d3c031008506d5e5bb54fee Mon Sep 17 00:00:00 2001 From: Akagi201 Date: Sun, 3 Apr 2016 20:26:27 +0800 Subject: [PATCH] update code --- ch1/ch1-04.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ch1/ch1-04.md b/ch1/ch1-04.md index f47b650..b7d53da 100644 --- a/ch1/ch1-04.md +++ b/ch1/ch1-04.md @@ -33,6 +33,10 @@ const ( ) func main() { + // The sequence of images is deterministic unless we seed + // the pseudo-random number generator using the current time. + // Thanks to Randall McPherson for pointing out the omission. + rand.Seed(time.Now().UTC().UnixNano()) lissajous(os.Stdout) }