aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/vgetrandom_unsupported.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/vgetrandom_unsupported.go')
-rw-r--r--src/runtime/vgetrandom_unsupported.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/runtime/vgetrandom_unsupported.go b/src/runtime/vgetrandom_unsupported.go
new file mode 100644
index 0000000000..070392cfaa
--- /dev/null
+++ b/src/runtime/vgetrandom_unsupported.go
@@ -0,0 +1,18 @@
+// Copyright 2024 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+//go:build !(linux && (amd64 || arm64 || arm64be || ppc64 || ppc64le || loong64 || s390x))
+
+package runtime
+
+import _ "unsafe"
+
+//go:linkname vgetrandom
+func vgetrandom(p []byte, flags uint32) (ret int, supported bool) {
+ return -1, false
+}
+
+func vgetrandomPutState(state uintptr) {}
+
+func vgetrandomInit() {}