$OpenBSD: patch-https_c,v 1.3 2015/10/06 22:43:50 sthen Exp $
--- https.c.orig	Thu Sep 17 18:28:56 2015
+++ https.c	Tue Oct  6 10:49:16 2015
@@ -87,6 +87,10 @@ SSL *getSSL(void)
 			if (RAND_load_file(cast_const_char f_randfile, -1))
 				RAND_write_file(cast_const_char f_randfile);
 		}
+#elif defined(HAVE_RAND_FILE_NAME) && defined(HAVE_RAND_LOAD_FILE) && defined(HAVE_RAND_WRITE_FILE)
+		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)
