Merge pull request #769 from sungjungk/fix-return-handling

Add error-handling routine for arc4_seed()

(cherry picked from commit 8d5b14d42888416404a24f8060b514f8258b7f17)
This commit is contained in:
Nathan French 2019-02-21 10:21:02 -05:00 committed by Azat Khuzhin
parent fcdda24b3a
commit 9108414032
No known key found for this signature in database
GPG Key ID: B86086848EF8686D

View File

@ -379,7 +379,9 @@ arc4_stir(void)
rs_initialized = 1; rs_initialized = 1;
} }
arc4_seed(); if (0 != arc4_seed())
return -1;
if (!arc4_seeded_ok) if (!arc4_seeded_ok)
return -1; return -1;