From ae8a6146df3bddb02e3814327a41f5c810d57a4f Mon Sep 17 00:00:00 2001 From: siddharth Date: Tue, 17 Aug 2021 20:18:06 -0400 Subject: challenge: update C21 Use MTRand instead of MTExtact. --- challenge/c21.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'challenge') 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()) } } -- cgit v1.2.3