mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-06 12:03:41 +00:00
Fix linker errors for runtime.vgetrandom and crypto/internal/sysrand.fatal
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package runtime
|
||||
|
||||
import _ "unsafe"
|
||||
|
||||
// TODO: Use hardware when available
|
||||
//
|
||||
//go:linkname vgetrandom
|
||||
func vgetrandom(p []byte, flags uint32) (ret int, supported bool) { return 0, false }
|
||||
|
||||
//go:linkname fatal crypto/internal/sysrand.fatal
|
||||
func fatal(msg string) { runtimePanic(msg) }
|
||||
Reference in New Issue
Block a user