From: Seong-Joong Kim Date: Thu, 21 Feb 2019 09:13:05 +0000 (+0900) Subject: Add error-handling routine for arc4_seed() X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=493a1da9936ca60d96f87f6175252230dca69961;p=libevent Add error-handling routine for arc4_seed() --- diff --git a/arc4random.c b/arc4random.c index a2338e69..ea2f3e7c 100644 --- a/arc4random.c +++ b/arc4random.c @@ -379,7 +379,9 @@ arc4_stir(void) rs_initialized = 1; } - arc4_seed(); + if (0 != arc4_seed()) + return -1; + if (!arc4_seeded_ok) return -1;