lopy4/components/Bliss-master/entropy.c
/*
 * Store random bits into the hash array.
 * Then increment the entropy->seed.
 *
 * - hash must be an array of n * SHA3_512_DIGEST_LENGTH bytes 
 *   (i.e., n * 64 bytes)
 */
Store random bits into the hash array.
Then increment the entropy->seed.

- hash must be an array of n * SHA3_512_DIGEST_LENGTH bytes
Store random bits into the hash array . Then increment the entropy - > seed . - hash must be an array of n * SHA3_512_DIGEST_LENGTH bytes
static void refresh(entropy_t *entropy, uint8_t *hash, uint32_t n) {
  assert(n > 0);
  while (n > 0) {
    sha3_512(hash, entropy->seed, SHA3_512_DIGEST_LENGTH);
    increment_seed(entropy);
    hash += SHA3_512_DIGEST_LENGTH;
    n --;
  }
}
static void refresh ( entropy_t * entropy , uint8_t * hash , uint32_t n ) { assert ( n > 0 ) ; while ( n > 0 ) { sha3_512 ( hash , entropy -> seed , SHA3_512_DIGEST_LENGTH ) ; increment_seed ( entropy ) ; hash += SHA3_512_DIGEST_LENGTH ; n -- ; } }
Store random bits into the hash array.
Store random bits into the hash array .