X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/69819af4834557e60c33bb378e29cf3d4e8269f8..2b7a0f47ea3ecea7b50c3052e854eae0d306da80:/sbr/m_rand.c diff --git a/sbr/m_rand.c b/sbr/m_rand.c index 76e5e17f..1accdc89 100644 --- a/sbr/m_rand.c +++ b/sbr/m_rand.c @@ -5,13 +5,13 @@ * complete copyright information. */ -#include /* for abs(), srand(), rand(), arc4random() */ +#include #include -#include /* for fopen(), fread(), fclose() */ -#include /* for getpid() */ -#include /* for time() */ +#include +#include +#include -#include +#include "config.h" #include "m_rand.h" #if !HAVE_ARC4RANDOM @@ -20,7 +20,8 @@ static bool seeded = false; int -m_rand (unsigned char *buf, size_t n) { +m_rand (unsigned char *buf, size_t n) +{ #if !HAVE_ARC4RANDOM if (! seeded) { FILE *devurandom;