diff --git a/configure.ac b/configure.ac
index 6062ddc905a123c52d51d1033f00f16137aaa444..044c38b67d35f97e4eb3dcbd07fec6cbe90c1cb5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -36,8 +36,6 @@ PKG_CHECK_MODULES([libknot], [libknot])
 PKG_CHECK_MODULES([libuv], [libuv], [build_daemon=yes], [build_daemon=no])
 PKG_CHECK_MODULES([cmocka], [cmocka], [build_tests=yes], [build_tests=no])
 
-AC_SEARCH_LIBS([RAND_pseudo_bytes], [gnutls-openssl crypto])
-
 # Check for python (integration tests)
 AC_ARG_ENABLE([integration-tests],
 	      AS_HELP_STRING([--enable-integration-tests], [enable integration tests (require Python devel), default: no]),