aboutsummaryrefslogtreecommitdiff
path: root/src/util/crypto_hash.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-06-11 21:58:28 +0000
committerChristian Grothoff <christian@grothoff.org>2010-06-11 21:58:28 +0000
commitbe537ba3666dee493c43afc5c011c6d1d9b6a23a (patch)
tree26c06e549bdf9a5c6f984d240158af58928627b8 /src/util/crypto_hash.c
parent719fb963b47d487112879ff2cb9d10cff88b84f5 (diff)
downloadgnunet-be537ba3666dee493c43afc5c011c6d1d9b6a23a.tar.gz
gnunet-be537ba3666dee493c43afc5c011c6d1d9b6a23a.zip
use constants instead of casting -1
Diffstat (limited to 'src/util/crypto_hash.c')
-rw-r--r--src/util/crypto_hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/crypto_hash.c b/src/util/crypto_hash.c
index 60104b604..73b9c9654 100644
--- a/src/util/crypto_hash.c
+++ b/src/util/crypto_hash.c
@@ -688,7 +688,7 @@ GNUNET_CRYPTO_hash_create_random (enum GNUNET_CRYPTO_Quality mode,
688{ 688{
689 int i; 689 int i;
690 for (i = (sizeof (GNUNET_HashCode) / sizeof (uint32_t)) - 1; i >= 0; i--) 690 for (i = (sizeof (GNUNET_HashCode) / sizeof (uint32_t)) - 1; i >= 0; i--)
691 result->bits[i] = GNUNET_CRYPTO_random_u32 (mode, (uint32_t) - 1); 691 result->bits[i] = GNUNET_CRYPTO_random_u32 (mode, UINT32_MAX);
692} 692}
693 693
694void 694void