casaroli commented on PR #19525:
URL: https://github.com/apache/nuttx/pull/19525#issuecomment-5073939092
### Tested on real RP2350 silicon
Built `raspberrypi-pico-2:nsh` with `CONFIG_RP23XX_RNG=y` +
`CONFIG_DEV_RANDOM=y`
+ `CONFIG_DEV_URANDOM=y` and flashed a Pimoroni Pico Plus 2 (RP2350) via a
Raspberry Pi Debug Probe (CMSIS-DAP), console on UART0.
Both devices register and return hardware entropy:
```
nsh> ls /dev
...
random
urandom
nsh> dd if=/dev/random of=/dev/console bs=16 count=1
88fa6c4c e81eac6f 3a5ba0ab f925c399
nsh> dd if=/dev/urandom of=/dev/console bs=16 count=1
d85763ab 03e8b399 695248e6 3ce68deb
```
Consecutive reads of `/dev/random` differ, as expected for a true RNG:
```
read #1: 214b0fc9 9b3a327b 8b7e2bda ce8d97b6
read #2: 0e9c9a04 07c0f013 a98ef4a7 783c1303
```
Reads complete without blocking and every request length returns the full
number of bytes.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]