Skip to main content

random_secret_hex

Function random_secret_hex 

Source
pub fn random_secret_hex(byte_count: usize) -> Result<String, i32>
Expand description

Generates a cryptographically random secret encoded as lowercase hexadecimal text.

§Parameters

§Returns

Returns the successful value produced by crate::runtime::dynamic::random_secret_hex or an error when the operation fails.

§Errors

Returns an error value when crate::runtime::dynamic::random_secret_hex cannot complete successfully.

§Examples

ⓘ
let _result = pharos_native::runtime::dynamic::random_secret_hex(todo!());