diff options
author | rsiddharth <s@ricketyspace.net> | 2021-02-27 14:00:34 -0500 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2021-02-27 14:00:34 -0500 |
commit | e4f381aabc00c44ff669792510d71da11e7afa42 (patch) | |
tree | e55ce513f06f1917d36cc5e577cba20b5cefe098 | |
parent | 40781a94bcf7f3fadf6f8a0bb94b42bd11cab6e5 (diff) |
challenge/c16.go: use lib.RandomBytes to generate key
-rw-r--r-- | challenge/c16.go | 4 |
1 files changed, 1 insertions, 3 deletions
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) } |