2015-02-13 12:20:23 +00:00
|
|
|
/**
|
|
|
|
* \brief Dummy random support
|
|
|
|
* \author Sebastian Sumpf
|
|
|
|
* \date 2015-02-16
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2017-02-20 12:23:52 +00:00
|
|
|
* Copyright (C) 2015-2017 Genode Labs GmbH
|
2015-02-13 12:20:23 +00:00
|
|
|
*
|
|
|
|
* This file is part of the Genode OS framework, which is distributed
|
2017-02-20 12:23:52 +00:00
|
|
|
* under the terms of the GNU Affero General Public License version 3.
|
2015-02-13 12:20:23 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <util/random.h>
|
|
|
|
|
|
|
|
|
2017-01-18 14:43:38 +00:00
|
|
|
int rumpuser_getrandom_backend(void *buf, Genode::size_t buflen, int flags, Genode::size_t *retp)
|
2015-02-13 12:20:23 +00:00
|
|
|
{
|
|
|
|
*retp = buflen;
|
|
|
|
return 0;
|
|
|
|
}
|