aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_crypto_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_crypto_lib.h')
-rw-r--r--src/include/gnunet_crypto_lib.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h
index 5521dad3c..d01457b4a 100644
--- a/src/include/gnunet_crypto_lib.h
+++ b/src/include/gnunet_crypto_lib.h
@@ -475,6 +475,22 @@ GNUNET_CRYPTO_random_block (enum GNUNET_CRYPTO_Quality mode,
475 void *buffer, 475 void *buffer,
476 size_t length); 476 size_t length);
477 477
478
479/**
480 * @ingroup crypto
481 * Fill UUID with a timeflake pseudo-random value. Note that
482 * timeflakes use only 80 bits of randomness and 48 bits
483 * to encode a timestamp in milliseconds. So what we return
484 * here is not a completely random number.
485 *
486 * @param mode desired quality of the random number
487 * @param uuid the value to fill
488 */
489void
490GNUNET_CRYPTO_random_timeflake (enum GNUNET_CRYPTO_Quality mode,
491 struct GNUNET_Uuid *uuid);
492
493
478/** 494/**
479 * @ingroup crypto 495 * @ingroup crypto
480 * Produce a random value. 496 * Produce a random value.