[feat] Add a random hardware interface #4

Open
opened 2024-02-27 14:36:31 +01:00 by hgruniaux · 0 comments
hgruniaux commented 2024-02-27 14:36:31 +01:00 (Migrated from github.com)

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:

  • The file /dev/random: generate as much random bytes as read, blocking if there is not enough entropy
  • The file /dev/urandom: generate as much random bytes as read, never blocking

LINUX compatibility:

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: - The file `/dev/random`: generate as much random bytes as read, blocking if there is not enough entropy - The file `/dev/urandom`: generate as much random bytes as read, never blocking LINUX compatibility: - The system call `getrandom()` (see https://man7.org/linux/man-pages/man2/getrandom.2.html)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
hubert/Pi-kachULM_OS#4
No description provided.