Skip to main content

try_fill_random

Function try_fill_random 

Source
pub fn try_fill_random(dest: &mut [u8]) -> bool
Expand description

填充密码学安全随机字节

§Returns

  • true - 填充成功
  • false - OS 熵源失败(fail-closed,缓冲区保持原样)