mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-07 20:43:40 +00:00
cab3834bc9
This implements machine.GetRNG() using VirtIO. This gets the tests to pass for crypto/md5 and crypto/sha1 that use crypto/rand in their tests.
8 lines
259 B
Go
8 lines
259 B
Go
//go:build baremetal && !(nrf || (stm32 && !(stm32f103 || stm32l0x1)) || (sam && atsamd51) || (sam && atsame5x) || esp32c3 || tkey || (tinygo.riscv32 && virt))
|
|
|
|
package runtime
|
|
|
|
func hardwareRand() (n uint64, ok bool) {
|
|
return 0, false // no RNG available
|
|
}
|