$OpenBSD: patch-https_c,v 1.7 2018/09/23 20:12:32 sthen Exp $
Index: https.c
--- https.c.orig
+++ https.c
@@ -264,6 +264,11 @@ links_ssl *getSSL(void)
 					RAND_write_file(cast_const_char f_randfile);
 			}
 		}
+#elif defined(HAVE_RAND_FILE_NAME) && defined(HAVE_RAND_LOAD_FILE) && defined(HAVE_RAND_WRITE_FILE)
+		unsigned char f_randfile[PATH_MAX];
+		const unsigned char *f = (const unsigned char *)RAND_file_name(cast_char f_randfile, sizeof(f_randfile));
+		if (RAND_load_file(cast_const_char f_randfile, -1))
+			RAND_write_file(cast_const_char f_randfile);
 #endif
 
 #if defined(HAVE_RAND_ADD)
