Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

user_environment.c: extra "{" in read_random() #688

Closed
yanjjj opened this issue Oct 10, 2023 · 0 comments
Closed

user_environment.c: extra "{" in read_random() #688

yanjjj opened this issue Oct 10, 2023 · 0 comments

Comments

@yanjjj
Copy link

yanjjj commented Oct 10, 2023

#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;

}

@tuexen tuexen closed this as completed in 308006e Nov 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant