lopy4/components/Bliss-master/entropy.c
/*
 * Initialize: with the given seed
 * - seed must be an array of SHA3_512_DIGEST_LENGTH bytes
 */
with the given seed
- seed must be an array of SHA3_512_DIGEST_LENGTH bytes
with the given seed - seed must be an array of SHA3_512_DIGEST_LENGTH bytes
void entropy_init(entropy_t *entropy, const uint8_t *seed) {
  uint32_t i;
  for (i=0; i<SHA3_512_DIGEST_LENGTH; i++) {
    entropy->seed[i] = seed[i];
  }
  char_pool_refresh(entropy);
  int16_pool_refresh(entropy);
  int64_pool_refresh(entropy);
  bit_pool_refresh(entropy);
}
void entropy_init ( entropy_t * entropy , const uint8_t * seed ) { uint32_t i ; for ( i = 0 ; i < SHA3_512_DIGEST_LENGTH ; i ++ ) { entropy -> seed [ i ] = seed [ i ] ; } char_pool_refresh ( entropy ) ; int16_pool_refresh ( entropy ) ; int64_pool_refresh ( entropy ) ; bit_pool_refresh ( entropy ) ; }
Initialize: with the given seed
 - seed must be an array of SHA3_512_DIGEST_LENGTH bytes
Initialize : with the given seed - seed must be an array of SHA3_512_DIGEST_LENGTH bytes