Source file src/crypto/internal/rand/random_fips140v1.28.go
1 // Copyright 2026 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 !(fips140v1.0 || fips140v1.26) 6 7 package rand 8 9 import ( 10 "crypto/internal/fips140/drbg" 11 "io" 12 ) 13 14 // IsDefaultReader reports whether r is the default [crypto/rand.Reader]. 15 // 16 // If true, the Read method of r can be assumed to call [drbg.Read]. 17 func IsDefaultReader(r io.Reader) bool { 18 return drbg.IsDefaultReader(r) 19 } 20