MCPcopy Index your code
hub / github.com/RustPython/RustPython / RAND_pseudo_bytes

Function RAND_pseudo_bytes

crates/stdlib/src/ssl.rs:4902–4906  ·  view source on GitHub ↗
(n: i64, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

4900
4901 #[pyfunction]
4902 fn RAND_pseudo_bytes(n: i64, vm: &VirtualMachine) -> PyResult<(PyBytesRef, bool)> {
4903 // In rustls/aws-lc-rs, all random bytes are cryptographically strong
4904 let bytes = RAND_bytes(n, vm)?;
4905 Ok((bytes, true))
4906 }
4907
4908 /// Test helper to decode a certificate from a file path
4909 ///

Callers

nothing calls this directly

Calls 1

RAND_bytesFunction · 0.85

Tested by

no test coverage detected