commit 849055cf638fd23f76878d9e5574d0fd31553293
parent 23db12535143ce51ef548f332289ed182b1c201b
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Wed, 1 Jul 2026 16:26:11 +0200
fix twister FTBFS
Diffstat:
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/src/twister/taler-twister-service.c b/src/twister/taler-twister-service.c
@@ -1224,10 +1224,8 @@ flip_object (struct MHD_Connection *con,
one may not matter in base32 encoding */
do {
flip_index = GNUNET_CRYPTO_random_u32 (
- GNUNET_CRYPTO_QUALITY_WEAK,
len);
crockford_index = GNUNET_CRYPTO_random_u32 (
- GNUNET_CRYPTO_QUALITY_STRONG,
CROCKFORD_MAX_INDEX);
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Try flipping %u to Crockford index: %u\n",
@@ -1418,8 +1416,7 @@ create_response_with_chaos_rate (struct HttpRequest *hr)
const void *resp_buf;
size_t resp_len;
- random = GNUNET_CRYPTO_random_u64 (GNUNET_CRYPTO_QUALITY_WEAK,
- 100);
+ random = GNUNET_CRYPTO_random_u64 (100);
TWISTER_LOG_INFO ("p: %llu, random: %llu\n",
(unsigned long long) chaos_rate,
(unsigned long long) random);
@@ -1587,7 +1584,7 @@ create_response (void *cls,
(hr->io_len > 0) )
{
TWISTER_LOG_DEBUG ("Will (badly) truncate the request.\n");
- malformed_size = GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK,
+ malformed_size = GNUNET_CRYPTO_random_u32 (
hr->io_len);
hr->io_len = malformed_size;
malform_upload = GNUNET_NO;
@@ -1913,7 +1910,7 @@ create_response (void *cls,
{
size_t fake_len;
- fake_len = GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK,
+ fake_len = GNUNET_CRYPTO_random_u32 (
hr->io_len);
hr->io_len = fake_len;
}