$OpenBSD: patch-pt_c,v 1.1 2015/11/20 10:09:52 sthen Exp $
--- pt.c.orig	Fri Oct  2 15:35:18 2015
+++ pt.c	Tue Oct 20 23:45:46 2015
@@ -244,8 +244,10 @@ int fork_process(int child_id, char *desc, int make_so
 {
 	int pid, child_process_no;
 	int ret;
+#ifndef HAVE_ARC4RANDOM
 	unsigned int new_seed1;
 	unsigned int new_seed2;
+#endif
 #ifdef USE_TCP
 	int sockfd[2];
 #endif
@@ -284,8 +286,10 @@ int fork_process(int child_id, char *desc, int make_so
 	
 	
 	child_process_no = *process_count;
+#ifndef HAVE_ARC4RANDOM
 	new_seed1=rand();
 	new_seed2=random();
+#endif
 	pid = fork();
 	if (pid<0) {
 		lock_release(process_lock);
@@ -300,9 +304,11 @@ int fork_process(int child_id, char *desc, int make_so
 #ifdef USE_TCP
 		close_extra_socks(child_id, process_no);
 #endif /* USE_TCP */
+#ifndef HAVE_ARC4RANDOM
 		srand(new_seed1);
 		fastrand_seed(rand());
 		srandom(new_seed2+time(0));
+#endif
 		shm_malloc_on_fork();
 #ifdef PROFILING
 		monstartup((u_long) &_start, (u_long) &etext);
@@ -379,8 +385,10 @@ int fork_tcp_process(int child_id, char *desc, int r, 
 	int reader_fd[2]; /* for comm. with the tcp children read  */
 	int ret;
 	int i;
+#ifndef HAVE_ARC4RANDOM
 	unsigned int new_seed1;
 	unsigned int new_seed2;
+#endif
 	
 	/* init */
 	sockfd[0]=sockfd[1]=-1;
@@ -419,8 +427,10 @@ int fork_tcp_process(int child_id, char *desc, int r, 
 	
 	
 	child_process_no = *process_count;
+#ifndef HAVE_ARC4RANDOM
 	new_seed1=rand();
 	new_seed2=random();
+#endif
 	pid = fork();
 	if (pid<0) {
 		lock_release(process_lock);
@@ -442,9 +452,11 @@ int fork_tcp_process(int child_id, char *desc, int r, 
 			}
 		}
 		daemon_status_on_fork_cleanup();
+#ifndef HAVE_ARC4RANDOM
 		srand(new_seed1);
 		fastrand_seed(rand());
 		srandom(new_seed2+time(0));
+#endif
 		shm_malloc_on_fork();
 #ifdef PROFILING
 		monstartup((u_long) &_start, (u_long) &etext);
