feat(primitives): improve rand implementations, use thread_rng
when available
#2331
Loading
thread_rng
when available
#2331