From e4f381aabc00c44ff669792510d71da11e7afa42 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sat, 27 Feb 2021 14:00:34 -0500 Subject: challenge/c16.go: use lib.RandomBytes to generate key --- challenge/c16.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'challenge') diff --git a/challenge/c16.go b/challenge/c16.go index 0376ccf..1bee376 100644 --- a/challenge/c16.go +++ b/challenge/c16.go @@ -4,15 +4,13 @@ package challenge import ( - "crypto/rand" "fmt" "ricketyspace.net/cryptopals/lib" ) func C16() { - key := make([]byte, 16) - _, err := rand.Read(key) + key, err := lib.RandomBytes(16) if err != nil { fmt.Printf("bit flip key: error: %v", err) } -- cgit v1.2.3