Skip to content

Fixed random number generator.#30

Open
chaosdefinition wants to merge 2 commits intojtcriswell:masterfrom
chaosdefinition:fix-random
Open

Fixed random number generator.#30
chaosdefinition wants to merge 2 commits intojtcriswell:masterfrom
chaosdefinition:fix-random

Conversation

@chaosdefinition
Copy link
Copy Markdown
Contributor

In this pull request,

  • Function randomNumber() in lib/thread_stack.c is renamed to sva_random() and moved to sva/util.h so that other .c files can use it to generate random numbers.
  • Random number generator used in lib/secmem.c is switched from OS callback random() to sva_random(), keeping consistency with lib/thread_stack.c.

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.

1 participant