Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cpu/native: add high-quality random implementation
Per default random data is read from `/dev/random` now. If specified (e.g. `-s 4711`), data is generated by calls to POSIX random function like before. The POSIX random API is initialize with the given seed (`srandom(4711);` in this example).
- Loading branch information
1 parent
52cc7eb
commit 88fa49a
Showing
3 changed files
with
122 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters