mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-30 08:03:59 +00:00
422923cc95
A rump server may now implement its own random number generator, the default impelementation will not generate random number. Issue #1409
22 lines
431 B
C++
22 lines
431 B
C++
/**
|
|
* \brief Dummy random support
|
|
* \author Sebastian Sumpf
|
|
* \date 2015-02-16
|
|
*/
|
|
|
|
/*
|
|
* 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.
|
|
*/
|
|
|
|
#include <util/random.h>
|
|
|
|
|
|
int rumpuser_getrandom_backend(void *buf, Genode::size_t buflen, int flags, Genode::size_t *retp)
|
|
{
|
|
*retp = buflen;
|
|
return 0;
|
|
}
|