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

random: Replace system random calls with STL #192

Merged
merged 1 commit into from
Apr 12, 2023

Conversation

roharvey
Copy link
Contributor

I hit a deadlock when generate() was calling syscall(SYS_getrandom, buf, n, 0) on an embedded system. I went with a standard solution, which cut down on some code and should be more portable. I also removed the apparently unused generate_64() function. If that function is truly needed, I can update to include it.

Tested with gcc on linux, unable to test on windows.

@jrsnen
Copy link
Member

jrsnen commented Apr 6, 2023

Hello.

This looks like a good change. I asked @tampsa to review this when he has time. We will test windows and give feedback if changes are needed. Thanks!

BR, Joni Räsänen

@tampsa
Copy link
Collaborator

tampsa commented Apr 12, 2023

Hi,

Thanks for the pull request, it looks good. We tested it and will merge it.

-Heikki Tampio

@tampsa tampsa merged commit b6323c8 into ultravideo:master Apr 12, 2023
@roharvey roharvey deleted the stl_random branch April 12, 2023 16:07
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

Successfully merging this pull request may close these issues.

3 participants