$OpenBSD$

--- src/microhttpd/mhd_compat.h.orig	Sun Oct  2 16:27:56 2016
+++ src/microhttpd/mhd_compat.h	Sun Oct  2 16:28:21 2016
@@ -68,7 +68,7 @@ int W32_snprintf(char *__restrict s, size_t n, const c
  * Generate pseudo random number at least 30-bit wide.
  * @return pseudo random number at least 30-bit wide.
  */
-#define MHD_random_() ( (((long)rand()) << 15) + (long)rand() )
+#define MHD_random_() (arc4random())
 #endif /* HAVE_RAND */
 #endif /* HAVE_RANDOM */
 
