projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24a83e1
)
Off by one in mpz_randomize.
author
David Barksdale
<amatus.amongus@gmail.com>
Mon, 17 May 2010 16:44:02 +0000
(16:44 +0000)
committer
David Barksdale
<amatus.amongus@gmail.com>
Mon, 17 May 2010 16:44:02 +0000
(16:44 +0000)
src/util/crypto_ksk.c
patch
|
blob
|
history
diff --git
a/src/util/crypto_ksk.c
b/src/util/crypto_ksk.c
index 7f69c1dff38b48c4113b7b98f7eab743608b1040..4960df9e2eb642684c80c71da0a95c3081c0f9f4 100644
(file)
--- a/
src/util/crypto_ksk.c
+++ b/
src/util/crypto_ksk.c
@@
-186,7
+186,7
@@
mpz_randomize (mpz_t n, unsigned int nbits, GNUNET_HashCode * rnd)
GNUNET_free (tmp);
i = get_nbits (n);
while (i > nbits)
- mpz_clrbit (n,
i--
);
+ mpz_clrbit (n,
--i
);
}
/**