Function gnunet_sys::GNUNET_CRYPTO_random_permute [−][src]
pub unsafe extern "C" fn GNUNET_CRYPTO_random_permute(
mode: GNUNET_CRYPTO_Quality,
n: c_uint
) -> *mut c_uint
@ingroup crypto Get an array with a random permutation of the numbers 0…n-1. @param mode #GNUNET_CRYPTO_QUALITY_STRONG if the strong (but expensive) PRNG should be used, #GNUNET_CRYPTO_QUALITY_WEAK or #GNUNET_CRYPTO_QUALITY_NONCE otherwise @param n the size of the array @return the permutation array (allocated from heap)