fix: correctly handle calls for GetRNG() when being made from nrf devices with SoftDevice enabled.

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram
2025-01-12 13:56:46 +01:00
committed by Ron Evans
parent 217f677bbe
commit 194438cdd6
3 changed files with 70 additions and 2 deletions
+9
View File
@@ -0,0 +1,9 @@
//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()
}