1// Copyright 2022 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5//go:build openbsd && !mips64
6
7package unix
8
9import _ "unsafe" // for linkname
10
11// GetEntropy calls the OpenBSD getentropy system call.
12func GetEntropy(p []byte) error {
13	return getentropy(p)
14}
15
16//go:linkname getentropy syscall.getentropy
17func getentropy(p []byte) error
18