randgen.c revision 19a02b635e2c5e796cdaecbef49a16eaec19c479
/* Copyright (c) 2002-2016 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "randgen.h"
#include "fd-close-on-exec.h"
#include <unistd.h>
#include <fcntl.h>
static int init_refcount = 0;
static int urandom_fd;
{
i_assert(init_refcount > 0);
if (ret == 0)
} else {
}
}
}
void random_init(void)
{
unsigned int seed;
if (init_refcount++ > 0)
return;
if (urandom_fd == -1) {
"currently we require it");
} else {
}
}
}
void random_deinit(void)
{
if (--init_refcount > 0)
return;
}
#ifdef HAVE_ARC4RANDOM
#ifdef HAVE_LIBBSD
#endif
{
}
#else
{
}
#endif