diff options
author | Ricardo Catalinas Jiménez <r@untroubled.be> | 2016-02-22 04:05:22 +0800 |
---|---|---|
committer | Ricardo Catalinas Jiménez <r@untroubled.be> | 2016-02-22 06:46:31 +0800 |
commit | 3d971c5a34ad14b13c6cc446e2ff41156b202c9f (patch) | |
tree | 433ef57b892554a9eafae4a1f2d4e7c240e229bf /crypto/randentropy | |
parent | 0c6665558a122bd7485fd4548801da54c520d7aa (diff) | |
download | dexon-3d971c5a34ad14b13c6cc446e2ff41156b202c9f.tar dexon-3d971c5a34ad14b13c6cc446e2ff41156b202c9f.tar.gz dexon-3d971c5a34ad14b13c6cc446e2ff41156b202c9f.tar.bz2 dexon-3d971c5a34ad14b13c6cc446e2ff41156b202c9f.tar.lz dexon-3d971c5a34ad14b13c6cc446e2ff41156b202c9f.tar.xz dexon-3d971c5a34ad14b13c6cc446e2ff41156b202c9f.tar.zst dexon-3d971c5a34ad14b13c6cc446e2ff41156b202c9f.zip |
crypto: Remove dead code
Diffstat (limited to 'crypto/randentropy')
-rw-r--r-- | crypto/randentropy/rand_entropy.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/crypto/randentropy/rand_entropy.go b/crypto/randentropy/rand_entropy.go index 0c2e3c051..539d3ac89 100644 --- a/crypto/randentropy/rand_entropy.go +++ b/crypto/randentropy/rand_entropy.go @@ -19,8 +19,6 @@ package randentropy import ( crand "crypto/rand" "io" - - "github.com/ethereum/go-ethereum/crypto/sha3" ) var Reader io.Reader = &randEntropy{} @@ -34,14 +32,6 @@ func (*randEntropy) Read(bytes []byte) (n int, err error) { return len(bytes), nil } -// TODO: copied from crypto.go , move to sha3 package? -func Sha3(data []byte) []byte { - d := sha3.NewKeccak256() - d.Write(data) - - return d.Sum(nil) -} - func GetEntropyCSPRNG(n int) []byte { mainBuff := make([]byte, n) _, err := io.ReadFull(crand.Reader, mainBuff) |