genode/repos/dde_rump/include/util/random.h
Sebastian Sumpf 422923cc95 rump: Add 'get_random_backend' function
A rump server may now implement its own random number generator, the default
impelementation will not generate random number.

Issue #1409
2015-02-27 11:43:55 +01:00

22 lines
523 B
C

/**
* \brief Overwritable backend-random methods
* \author Sebastian Sumpf
* \date 2015-02-13
*/
/*
* Copyright (C) 2015 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU General Public License version 2.
*/
#ifndef _INCLUDE__UTIL__RANDOM_H_
#define _INCLUDE__UTIL__RANDOM_H_
#include <base/stdint.h>
int rumpuser_getrandom_backend(void *buf, Genode::size_t buflen, int flags, Genode::size_t *retp);
#endif /* _INCLUDE__UTIL__RANDOM_H_ */