1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

Merge pull request #7847 from BenWiederhake/dev-shred-deterministic-random-passes-extension

shred: document simplified (better?) number of random passes
This commit is contained in:
Daniel Hofstetter 2025-04-26 19:16:31 +02:00 committed by GitHub
commit ed3da5fd65
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -97,3 +97,7 @@ Similar to the proc-ps implementation and unlike GNU/Coreutils, `uptime` provide
## `base32/base64/basenc` ## `base32/base64/basenc`
Just like on macOS, `base32/base64/basenc` provides `-D` to decode data. Just like on macOS, `base32/base64/basenc` provides `-D` to decode data.
## `shred`
The number of random passes is deterministic in both GNU and uutils. However, uutils `shred` computes the number of random passes in a simplified way, specifically `max(3, x / 10)`, which is very close but not identical to the number of random passes that GNU would do. This also satisfies an expectation that reasonable users might have, namely that the number of random passes increases monotonically with the number of passes overall; GNU `shred` violates this assumption.