blob: f402f308bc80434c9faaab897a0f0d211b240ef4 [file] [edit]
// Copyright 2026 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 fips140v1.0 || fips140v1.26
package fips140only
import (
"crypto/internal/fips140/drbg"
"io"
)
func ApprovedRandomReader(r io.Reader) bool {
_, ok := r.(drbg.DefaultReader)
return ok
}