Skip to main content

initialize

Function initialize 

Source
pub fn initialize()
Expand description

Run the startup self-test and detect the CPU: every program calls this once before hashing (any call that loads the detected platform before initialize completes panics). Under 0.2 ms, once per process (see the crate’s documentation); later calls return at once.

blake3_servil_core::initialize();
let hash = blake3_servil_core::convenience::hash(b"foo");