Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Stir arc4random.
Vsevolod Stakhov committed 11 years ago
commit d4890a7f7bc8062fef4f3eb8777e33e6158259ff
parent 9cb4fa3
1 file changed +5 -0
modified src/main.c
@@ -740,6 +740,11 @@ main(int argc, char **argv)
	if (debug == 0 && version == 0)
		start_process_worker();

+
#ifdef HAVE_ARC4RANDOM
+
	/* Ensure that random is stirred after a possible fork */
+
	arc4random_stir();
+
#endif
+

	if (jail_str != NULL && chroot_path != NULL) {
		usage(conffile, reposdir, stderr, PKG_USAGE_INVALID_ARGUMENTS,
				"-j and -c cannot be used at the same time!\n");