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

Implement random number generator with hardware support #123

Closed
nfbot opened this issue Aug 30, 2017 · 2 comments · Fixed by nanoframework/nf-interpreter#643
Closed

Implement random number generator with hardware support #123

nfbot opened this issue Aug 30, 2017 · 2 comments · Fixed by nanoframework/nf-interpreter#643

Comments

@nfbot
Copy link
Member

nfbot commented Aug 30, 2017

From nf-interpreter created by josesimoes : nanoframework/nf-interpreter#307

This can be accomplished in the targets that have a random number generator in hardware.
Has to provide the 'strong' implementation of the class CLR_RT_Random in CLR Core, marked with 'weak' attribute.

@networkfusion
Copy link
Member

this could be implemented in a very similar way to the recent CRC32 code...

@josesimoes
Copy link
Member

Yeap. That's the plan from the beginning. 😉
Ideally the current code should be replaced with a call to the hardware unit and default to NewlibC implementation when that isn't available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants