Function randomx_bindings_sys::randomx_init_cache [−][src]
pub unsafe extern "C" fn randomx_init_cache(
cache: *mut randomx_cache,
key: *const c_void,
keySize: size_t
)
Expand description
Initializes the cache memory and SuperscalarHash using the provided key value. Does nothing if called again with the same key value.
@param cache is a pointer to a previously allocated randomx_cache structure. Must not be NULL. @param key is a pointer to memory which contains the key value. Must not be NULL. @param keySize is the number of bytes of the key.