mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-09 05:23:40 +00:00
1545659817
The upstream one assumes it's running on a Unix system (which makes sense), but this package is also used on baremetal. So replace it on systems that need a replaced syscall package.
13 lines
229 B
Go
13 lines
229 B
Go
package unix
|
|
|
|
type GetRandomFlag uintptr
|
|
|
|
const (
|
|
GRND_NONBLOCK GetRandomFlag = 0x0001
|
|
GRND_RANDOM GetRandomFlag = 0x0002
|
|
)
|
|
|
|
func GetRandom(p []byte, flags GetRandomFlag) (n int, err error) {
|
|
panic("todo: unix.GetRandom")
|
|
}
|