mirror of
https://github.com/gopl-zh/gopl-zh.github.com.git
synced 2025-08-06 15:32:19 +00:00
update code
This commit is contained in:
@@ -33,6 +33,10 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
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)
|
lissajous(os.Stdout)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user