From c9b38b4765a7eea11bb57b4fce1694c382c80936 Mon Sep 17 00:00:00 2001 From: stoffu Date: Mon, 5 Mar 2018 14:24:48 +0900 Subject: device: made function prototypes consistent with pre-#3303 codebase --- src/crypto/crypto_device.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/crypto/crypto_device.cpp') diff --git a/src/crypto/crypto_device.cpp b/src/crypto/crypto_device.cpp index 5536857c8..30831dced 100644 --- a/src/crypto/crypto_device.cpp +++ b/src/crypto/crypto_device.cpp @@ -35,15 +35,11 @@ namespace crypto { secret_key generate_keys(public_key &pub, secret_key &sec, const secret_key& recovery_key, bool recover, hw::device &hwdev) { - secret_key rng; - hwdev.generate_keys(pub, sec, recovery_key, recover, rng); - return rng; + return hwdev.generate_keys(pub, sec, recovery_key, recover); } secret_key generate_keys(public_key &pub, secret_key &sec, hw::device &hwdev) { - secret_key rng; - hwdev.generate_keys(pub, sec, secret_key(), false, rng); - return rng; + return hwdev.generate_keys(pub, sec, secret_key(), false); } -- cgit v1.2.3