mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-08 04:53:42 +00:00
194438cdd6
Signed-off-by: deadprogram <ron@hybridgroup.com>
10 lines
297 B
Go
10 lines
297 B
Go
//go:build nrf && !softdevice
|
|
|
|
package machine
|
|
|
|
// GetRNG returns 32 bits of non-deterministic random data based on internal thermal noise.
|
|
// According to Nordic's documentation, the random output is suitable for cryptographic purposes.
|
|
func GetRNG() (ret uint32, err error) {
|
|
return getRNG()
|
|
}
|