summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/hamming.go14
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/hamming.go b/lib/hamming.go
index e53916c..0cfcf41 100644
--- a/lib/hamming.go
+++ b/lib/hamming.go
@@ -3,12 +3,6 @@
package lib
-import "math/rand"
-
-func init() {
- rand.Seed(42)
-}
-
func HammingDistance(a, b []byte) int {
if len(a) != len(b) {
return -1 // Fail.
@@ -53,11 +47,3 @@ func KeySizeWithMinDistance(keyMin, keyMax int, bs []byte) int {
}
return mk
}
-
-// Generates a key of size 'size' bytes.
-func genKey(size int) []byte {
- bs := make([]byte, size, size)
- rand.Read(bs)
-
- return bs
-}