diff --git a/src/post_modules/Nettle/hogweed.cmod b/src/post_modules/Nettle/hogweed.cmod
index a16a59fec80032b32701241b85df08f10b6b9e37..8d24089d211a7b5db66a398cda935125b3026aeb 100644
--- a/src/post_modules/Nettle/hogweed.cmod
+++ b/src/post_modules/Nettle/hogweed.cmod
@@ -26,7 +26,7 @@ DECLARATIONS
 /*! @module Nettle
  */
 
-void random_func_wrapper(void *f, size_t num, uint8_t *out)
+static void random_func_wrapper(void *f, unsigned int num, uint8_t *out)
 {
   push_int(num);
   apply_svalue((struct svalue *)f, 1);