Mercurial > dovecot > core-2.2
view src/lib/randgen.h @ 23007:36e01285b5b8
lib: buffer - Improve header comment for buffer_insert() and buffer_delete().
author | Stephan Bosch <stephan.bosch@dovecot.fi> |
---|---|
date | Mon, 18 Mar 2019 00:52:37 +0100 |
parents | e4eb71ae8e96 |
children |
line wrap: on
line source
#ifndef RANDGEN_H #define RANDGEN_H /* Fill given buffer with semi-strong randomness, usually from /dev/urandom. */ void random_fill(void *buf, size_t size); /* Fill given buffer with weak randomness, ie. with rand(). This is better if no real randomness is required, as reading from /dev/urandom usually also consumes /dev/random entropy, which may disturb other processes. */ void random_fill_weak(void *buf, size_t size); /* may be called multiple times */ void random_init(void); void random_deinit(void); #endif