internal/syscall/unix: use our own version of this package

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.
This commit is contained in:
Ayke van Laethem
2025-02-26 13:35:58 +01:00
committed by Ron Evans
parent 38e3d55e64
commit 1545659817
4 changed files with 31 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
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")
}