Skip to content

Commit d2d91b5

Browse files
committed
Ensure the library doesn't initialize if hash can't be randomized
1 parent 5472927 commit d2d91b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/hash.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ __attribute__((constructor(65535))) static void initialize_fnv1a_seed(void)
217217
/* The seeds are randomized in order to mitigate the DDoS attack
218218
* described by Crosby and Wallach in UsenixSec2003. */
219219
if (UNLIKELY(lwan_getentropy(entropy, sizeof(entropy), 0) < 0)) {
220-
lwan_status_perror("Could not initialize FNV1a seed");
220+
lwan_status_critical_perror("Could not initialize FNV1a seed");
221221
__builtin_unreachable();
222222
}
223223

0 commit comments

Comments
 (0)