Conversation
src/uu/sort/src/sort.rs
Outdated
| use nanorand::Rng; | ||
| nanorand::WyRand::new().generate::<u128>().to_ne_bytes() |
There was a problem hiding this comment.
WyRand has 64 bit output size, which we use to generate 128 bit salt?
There was a problem hiding this comment.
I guess it is just generating 64bit twice.
|
Hey, as a sidenote, you can use
to push only one commit to a remote. |
|
I deliberately split 2 commit to run bench only and drop later. |
|
@oech3 Going forward, you could use |
|
No need. This is draft. |
I mean, in future. I think like #11123, you should use |
What crate? Also does |
|
|
We can still get some improvement changing from default RNG ( |
|
Since CodSpeed might not report anything: |
|
This will be draft until #11123 was merged. |
|
There might be no statistical significant difference between all three implementations, but one less dependency is a win. |
|
(btw, I was considering to remove |
I don't know, this approach might be limited by low entropy (especially on 32-bit systems) |
3895fcd to
9325b00
Compare
|
GNU testsuite comparison: |
3189432 -> 3179752 byte
non-crypto rng with
getrandomshould be safe.