summaryrefslogtreecommitdiffstats
path: root/challenge
diff options
context:
space:
mode:
authorsiddharth <s@ricketyspace.net>2021-08-17 20:18:06 -0400
committersiddharth <s@ricketyspace.net>2021-08-17 20:18:06 -0400
commitae8a6146df3bddb02e3814327a41f5c810d57a4f (patch)
tree64b0090ef3bbb7e64e24935800bcc89438a47f30 /challenge
parent116e478a7d945f2012408c4d76fc9badbb257cd4 (diff)
challenge: update C21
Use MTRand instead of MTExtact.
Diffstat (limited to 'challenge')
-rw-r--r--challenge/c21.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/challenge/c21.go b/challenge/c21.go
index 7dc734d..e725cd3 100644
--- a/challenge/c21.go
+++ b/challenge/c21.go
@@ -10,8 +10,9 @@ import (
)
func C21() {
+ mt := new(lib.MTRand)
for {
- fmt.Printf("%v\n", lib.MTExtract())
+ fmt.Printf("%v\n", mt.Extract())
}
}