diff --git a/bignum-random.c b/bignum-random.c
index 6653dea375e321730594c847c1d8a8a94b1b5765..dc2fd1c9a5e61918803922bb9eb50d645708ca47 100644
--- a/bignum-random.c
+++ b/bignum-random.c
@@ -27,8 +27,6 @@
 # include "config.h"
 #endif
 
-#if HAVE_LIBGMP
-
 #include <stdlib.h>
 
 #include "bignum.h"
@@ -85,5 +83,3 @@ nettle_mpz_random(mpz_t x,
   
   mpz_fdiv_r(x, x, n);
 }
-
-#endif /* HAVE_LIBGMP */