From 24b300d75df03ffc8a0b807e078df19e40ec820e Mon Sep 17 00:00:00 2001 From: v2ray Date: Fri, 22 Jan 2016 17:55:10 +0100 Subject: [PATCH] remove fuzzing lib --- testing/fuzzing/fuzzing.go | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 testing/fuzzing/fuzzing.go diff --git a/testing/fuzzing/fuzzing.go b/testing/fuzzing/fuzzing.go deleted file mode 100644 index 64d71dcd..00000000 --- a/testing/fuzzing/fuzzing.go +++ /dev/null @@ -1,17 +0,0 @@ -package fuzzing - -import ( - "bytes" - "crypto/rand" - "io" -) - -func RandomBytes() []byte { - buffer := make([]byte, 256) - rand.Read(buffer) - return buffer[1 : 1+int(buffer[0])] -} - -func RandomReader() io.Reader { - return bytes.NewReader(RandomBytes()) -}