Xoroshiro
PRNG的Rust实现。
Xoroshiro128 +算法不适用于加密目的,但可以将速度和不可预测性完美地结合在一起。
它比Rust的默认XorShiftRng产生高质量的输出,并且速度更快:
next_u32/XorShift time: [1.4832 ns 1.4964 ns 1.5123 ns]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high severe
next_u32/Xoroshiro128 time: [1.0594 ns 1.0796 ns 1.1051 ns]
Found 6 outliers among 100 measurements (6.00%)
5 (5.00%) high mild
1 (1.00%) high s
评论0
最新资源