diff --git a/source/src/crypto.cpp b/source/src/crypto.cpp index 30768af2..d7fa9cbc 100644 --- a/source/src/crypto.cpp +++ b/source/src/crypto.cpp @@ -797,7 +797,7 @@ void freepubkey(void *pubkey) void *genchallenge(void *pubkey, const void *seed, int seedlen, vector &challengestr) { tiger::hashval hash; - tiger::hash((const uchar *)seed, sizeof(seed), hash); + tiger::hash((const uchar *)seed, seedlen, hash); gfint challenge; memcpy(challenge.digits, hash.bytes, sizeof(challenge.digits)); challenge.len = 8*sizeof(hash.bytes)/BI_DIGIT_BITS;