[feat] Add a random hardware interface #4
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
hubert/Pi-kachULM_OS#4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The Raspberry PI firmware has support for random hardware. Is not cool to be able to generate TRUE random from our own OS ? Of course, it is.
Tutorial: https://github.com/bztsrc/raspi3-tutorial/tree/master/06_random
POSIX compatibility:
/dev/random: generate as much random bytes as read, blocking if there is not enough entropy/dev/urandom: generate as much random bytes as read, never blockingLINUX compatibility:
getrandom()(see https://man7.org/linux/man-pages/man2/getrandom.2.html)