Skip to content

Commit ed3da5f

Browse files
authored
Merge pull request #7847 from BenWiederhake/dev-shred-deterministic-random-passes-extension
shred: document simplified (better?) number of random passes
2 parents 606c0c1 + abb2acc commit ed3da5f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/src/extensions.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,7 @@ Similar to the proc-ps implementation and unlike GNU/Coreutils, `uptime` provide
9797
## `base32/base64/basenc`
9898

9999
Just like on macOS, `base32/base64/basenc` provides `-D` to decode data.
100+
101+
## `shred`
102+
103+
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.

0 commit comments

Comments
 (0)