From: Martin Johansson Date: Tue, 14 May 2013 20:39:34 +0000 (+0200) Subject: Fix using /dev/urandom since it wasn't working X-Git-Url: http://git.code-monkey.de/?p=umurmur.git;a=commitdiff_plain;h=3cd38e434b0b7805659de66dac343cfc788439f4 Fix using /dev/urandom since it wasn't working --- diff --git a/src/ssl.c b/src/ssl.c index 86e35a5..2ea92db 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -161,6 +161,7 @@ int urandom_bytes(void *ctx, unsigned char *dest, size_t len) continue; len -= cur; } + return 0; } #endif diff --git a/src/ssl.h b/src/ssl.h index 2aba396..75b44a0 100644 --- a/src/ssl.h +++ b/src/ssl.h @@ -49,6 +49,7 @@ #endif #ifdef USE_POLARSSL_HAVEGE +#include #if (POLARSSL_VERSION_MINOR >= 1) #define HAVEGE_RAND (havege_random) #define RAND_bytes(_dst_, _size_) do { \