This commit is contained in:
2018-07-29 15:45:45 +02:00
parent 291f1cd8c3
commit 7a138c6d80
3 changed files with 73 additions and 8 deletions

View File

@@ -547,12 +547,10 @@ arc4random_initialize(void)
if (!arc4random_global.initialized) {
if (crypto_core_selftest() != 0)
abort();
#if !defined(__minix)
if (pthread_atfork(&arc4random_atfork_prepare,
&arc4random_atfork_parent, &arc4random_atfork_child)
!= 0)
abort();
#endif /* !defined(__minix) */
#ifdef _REENTRANT
if (thr_keycreate(&arc4random_global.thread_key,
&arc4random_tsd_destructor) != 0)