2 ms·
That's not the case here, and even then why bother when modern operating systems have ways to easily get you good quality entropy? If you use a decent random li
by simias 5y ago
That's not the case here, and even then why bother when modern operating systems have ways to easily get you good quality entropy? If you use a decent random library you won't have to bother reinventing the wheel.
I had to generate a 20 char random key string in Rust the other day, I just wrote:
rand::thread_rng()
.sample_iter(&Alphanumeric)
.take(20)
.map(char::from)
.collect()
There. Uniform, decent entropy, explicit, simple.