-/**
- * Add n_bit of entropy in entropy pool.
- */
-void randpool_add(EntropyPool *pool, void *data, size_t data_len, size_t entropy)
-{
- ticks_t event = timer_clock();
- uint32_t delta;
- uint8_t sep[] = "\xaa\xaa\xaa\xaa"; // ??
-
- randpool_push(pool, data, data_len); //Insert data to entropy pool.
-
- randpool_push(pool, sep, strlen(sep)); // ??
-
- /*Difference of time between a two accese to entropy pool.*/
- delta = event - pool->last_counter;
-
- randpool_push(pool, &delta, sizeof(delta));
-
- delta = delta & 0xff;
-
- randpool_push(pool, &delta, sizeof(delta));
-
- /*
- * Count of number entropy bit add with delta.
- */
- while(delta)
- {
- delta >>= 1;
- entropy++;
- }
-
- pool->entropy += entropy; //Update a entropy of the pool.
- pool->last_counter = event;
-}
-
-/* \