user_environment.c: extra "{" in read_random()
yanjjj opened this issue · 0 comments
yanjjj commented
#elif defined(native_client)
#include <nacl/nacl_random.h>
void
init_random(void)
{
return;
}
void
read_random(void *buf, size_t size)
{
size_t position;
size_t n;
position = 0;
while (position < size) {
if (nacl_secure_random((char *)buf + position, size - position, &n) == 0)
position += n;
}
} // <---here
return;
}