Skip to content
Permalink
Browse files

Remove delay from Particle implementation of hydro_random_init()

Unnecessary as all HAL implementations for supported Particle platforms are blocking until sufficient random data is available to fulfill the request.
  • Loading branch information...
Dan-Kouba committed Sep 26, 2019
1 parent de3f2cf commit 2d778160a870310cf697ff751fbf82a778ee5729
Showing with 0 additions and 2 deletions.
  1. +0 −2 impl/random.h
@@ -116,8 +116,6 @@ hydro_random_init(void)

while (ebits < 256) {
uint32_t r = HAL_RNG_GetRandomNumber();

delay(10);
hydro_hash_update(&st, (const uint32_t *) &r, sizeof r);
ebits += 32;
}

0 comments on commit 2d77816

Please sign in to comment.
You can’t perform that action at this time.