Library guide · API index and notation
This page is generated from the bundled library in this checkout. Signatures and adjacent source comments are reproduced below; the linked guide explains usage, storage, failures, and platform support.
import "std/crypto/posix"
This is a provider or implementation package. Start with the linked guide’s application API; native declarations depend on the selected target.
Names used in signatures
Unqualified names denote this package’s types (including other source files in the same package), language built-ins, or generic parameters such as T. Qualified names use the import aliases below. These aliases belong to the library source; import a dependency yourself to use its alias in your program.
This package has no source imports.
dodo_crypto_random
Function · Source
Fills count bytes from the operating system CSPRNG. Returns 0, or the native failure code with the destination contents unspecified.
pub unsafe extern "C" fn dodo_crypto_random(bytes: *mut u8, count: usize) -> i32
Requires an unsafe context. Follow the source safety preconditions and the linked guide before calling this API.