OSDN Git Service

Merge pull request #201 from Bytom/v0.1
[bytom/vapor.git] / vendor / github.com / tendermint / go-crypto / random.go
index 40cbcf8..c329b80 100644 (file)
@@ -4,7 +4,6 @@ import (
        "crypto/aes"
        "crypto/cipher"
        crand "crypto/rand"
-       "encoding/hex"
        "io"
        "sync"
 
@@ -44,16 +43,6 @@ func CRandBytes(numBytes int) []byte {
        return b
 }
 
-// RandHex(24) gives 96 bits of randomness, strong enough for most purposes.
-func CRandHex(numDigits int) string {
-       return hex.EncodeToString(CRandBytes(numDigits / 2))
-}
-
-// Returns a crand.Reader mixed with user-supplied entropy
-func CReader() io.Reader {
-       return gRandInfo
-}
-
 //--------------------------------------------------------------------------------
 
 type randInfo struct {