aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/key_store_test.go
diff options
context:
space:
mode:
authorGustav Simonsson <gustav.simonsson@gmail.com>2015-02-13 22:38:18 +0800
committerGustav Simonsson <gustav.simonsson@gmail.com>2015-02-13 22:38:26 +0800
commit39434e383b9e6fee30371afd5a9841de75671f56 (patch)
treea1c5cd30f649cf73b36c0bdde0f47caa1fbbd2c0 /crypto/key_store_test.go
parent8c056aebe10c8c56f7c25889780b04e00f9ca00b (diff)
downloadgo-tangerine-39434e383b9e6fee30371afd5a9841de75671f56.tar
go-tangerine-39434e383b9e6fee30371afd5a9841de75671f56.tar.gz
go-tangerine-39434e383b9e6fee30371afd5a9841de75671f56.tar.bz2
go-tangerine-39434e383b9e6fee30371afd5a9841de75671f56.tar.lz
go-tangerine-39434e383b9e6fee30371afd5a9841de75671f56.tar.xz
go-tangerine-39434e383b9e6fee30371afd5a9841de75671f56.tar.zst
go-tangerine-39434e383b9e6fee30371afd5a9841de75671f56.zip
Unexport randEntropy type and use exported Reader instead
Diffstat (limited to 'crypto/key_store_test.go')
-rw-r--r--crypto/key_store_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/key_store_test.go b/crypto/key_store_test.go
index a136ba992..485d8f536 100644
--- a/crypto/key_store_test.go
+++ b/crypto/key_store_test.go
@@ -9,7 +9,7 @@ import (
func TestKeyStorePlain(t *testing.T) {
ks := NewKeyStorePlain(DefaultDataDir())
pass := "" // not used but required by API
- k1, err := ks.GenerateNewKey(new(randentropy.RandEntropy), pass)
+ k1, err := ks.GenerateNewKey(randentropy.Reader, pass)
if err != nil {
t.Fatal(err)
}
@@ -37,7 +37,7 @@ func TestKeyStorePlain(t *testing.T) {
func TestKeyStorePassphrase(t *testing.T) {
ks := NewKeyStorePassphrase(DefaultDataDir())
pass := "foo"
- k1, err := ks.GenerateNewKey(new(randentropy.RandEntropy), pass)
+ k1, err := ks.GenerateNewKey(randentropy.Reader, pass)
if err != nil {
t.Fatal(err)
}
@@ -63,7 +63,7 @@ func TestKeyStorePassphrase(t *testing.T) {
func TestKeyStorePassphraseDecryptionFail(t *testing.T) {
ks := NewKeyStorePassphrase(DefaultDataDir())
pass := "foo"
- k1, err := ks.GenerateNewKey(new(randentropy.RandEntropy), pass)
+ k1, err := ks.GenerateNewKey(randentropy.Reader, pass)
if err != nil {
t.Fatal(err)
}