aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pubkey/blinding.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pubkey/blinding.cpp b/src/pubkey/blinding.cpp
index 2bb6680d6..819d0dd20 100644
--- a/src/pubkey/blinding.cpp
+++ b/src/pubkey/blinding.cpp
@@ -36,14 +36,14 @@ BigInt Blinder::choose_nonce(const BigInt& x, const BigInt& mod)
u64bit ns_clock = get_nanoseconds_clock();
for(size_t i = 0; i != sizeof(ns_clock); ++i)
- hash->update(get_byte(0, ns_clock));
+ hash->update(get_byte(i, ns_clock));
hash->update(BigInt::encode(x));
hash->update(BigInt::encode(mod));
u64bit timestamp = system_time();
for(size_t i = 0; i != sizeof(timestamp); ++i)
- hash->update(get_byte(0, timestamp));
+ hash->update(get_byte(i, timestamp));
SecureVector<byte> r = hash->final();