diff options
Diffstat (limited to 'challenge/c16.go')
-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) } |