diff fuzz/fuzz-common.c @ 1775:8179eabe16c9

fuzzing - fix some wrong types and -lcrypt on macos
author Matt Johnston <matt@ucc.asn.au>
date Mon, 02 Nov 2020 20:33:48 +0800
parents 833bf9947603
children 97ad26e397a5
line wrap: on
line diff
--- a/fuzz/fuzz-common.c	Sun Nov 01 23:44:58 2020 +0800
+++ b/fuzz/fuzz-common.c	Mon Nov 02 20:33:48 2020 +0800
@@ -239,7 +239,7 @@
     }
 
     uint32_t wrapseed;
-    genrandom(&wrapseed, sizeof(wrapseed));
+    genrandom((void*)&wrapseed, sizeof(wrapseed));
     wrapfd_setseed(wrapseed);
 
     int fakesock = wrapfd_new();
@@ -275,7 +275,7 @@
     ses.kexstate.donefirstkex = 1;
 
     uint32_t wrapseed;
-    genrandom(&wrapseed, sizeof(wrapseed));
+    genrandom((void*)&wrapseed, sizeof(wrapseed));
     wrapfd_setseed(wrapseed);
 
     int fakesock = wrapfd_new();