lopy4/components/Bliss-master/entropy.c
/*
 * Return n random bits
 * - n must be no more than 32
 * - the n bits are low-order bits of the returned integer.
 */
Return n random bits
- n must be no more than 32
- the n bits are low-order bits of the returned integer.
Return n random bits - n must be no more than 32 - the n bits are low - order bits of the returned integer .
uint32_t entropy_random_bits(entropy_t* entropy, uint32_t n) {
  uint32_t retval;
  assert(entropy != NULL && n <= 32);
  retval = 0;
  while (n  > 0) {
    retval <<= 1;
    retval |= entropy_random_bit(entropy);
    n --;
  }
  return retval;
}
uint32_t entropy_random_bits ( entropy_t * entropy , uint32_t n ) { uint32_t retval ; assert ( entropy != NULL && n <= 32 ) ; retval = 0 ; while ( n > 0 ) { retval <<= 1 ; retval |= entropy_random_bit ( entropy ) ; n -- ; } return retval ; }
Return n random bits
 - n must be no more than 32
 - the n bits are low-order bits of the returned integer.
Return n random bits - n must be no more than 32 - the n bits are low - order bits of the returned integer .