Generating secure random bytes in rust

后端 未结 0 540
独厮守ぢ
独厮守ぢ 2021-02-14 13:51

I\'m trying to use ring::rand::Secure/SystemRandom to generate some secure random bytes:

let mut randoms: [u8; 10] = [0; 10];
let sr = ring::rand::SystemRandom::n         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题