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

Add error-handling routine for arc4_seed()
This commit is contained in:
Nathan French 2019-02-21 10:21:02 -05:00 committed by GitHub
commit 8d5b14d428
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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