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

rand: add prng #101

Merged
merged 1 commit into from
Oct 3, 2020
Merged

rand: add prng #101

merged 1 commit into from
Oct 3, 2020

Conversation

nmanthey
Copy link
Contributor

This commit adds the ability to use random numbers with a seed, via the
known methods rand() and srand().

As generator, a simple linear congruential generator is used, with the
same parameters as used in musl or newlib.

Signed-off-by: Norbert Manthey [email protected]

Issue #, if available: #83

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

This commit adds the ability to use random numbers with a seed, via the
known methods rand() and srand().

As generator, a simple linear congruential generator is used, with the
same parameters as used in musl or newlib.

Signed-off-by: Norbert Manthey <[email protected]>
@wipawel wipawel merged commit 689c2ac into KernelTestFramework:mainline Oct 3, 2020
@nmanthey nmanthey deleted the rand branch November 30, 2020 08:38
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.

2 participants