Skip to content

shred: should use all internal overwrite patterns in 25 passes #7809

Closed
@cakebaker

Description

@cakebaker

The documentation states:

After 25 passes all of the internal overwrite patterns will have been used at least once.

However, with our implementation this is not the case. For example, in the following example, the 111111, 666666 and cccccc patterns are missing:

$ cargo run -q shred -vn25 foo.txt
shred: foo.txt: pass 1/25 (random)...
shred: foo.txt: pass 2/25 (dddddd)...
shred: foo.txt: pass 3/25 (555555)...
shred: foo.txt: pass 4/25 (eeeeee)...
shred: foo.txt: pass 5/25 (000000)...
shred: foo.txt: pass 6/25 (222222)...
shred: foo.txt: pass 7/25 (random)...
shred: foo.txt: pass 8/25 (ffffff)...
shred: foo.txt: pass 9/25 (6db6db)...
shred: foo.txt: pass 10/25 (924924)...
shred: foo.txt: pass 11/25 (777777)...
shred: foo.txt: pass 12/25 (bbbbbb)...
shred: foo.txt: pass 13/25 (random)...
shred: foo.txt: pass 14/25 (333333)...
shred: foo.txt: pass 15/25 (492492)...
shred: foo.txt: pass 16/25 (999999)...
shred: foo.txt: pass 17/25 (888888)...
shred: foo.txt: pass 18/25 (aaaaaa)...
shred: foo.txt: pass 19/25 (random)...
shred: foo.txt: pass 20/25 (ffffff)...
shred: foo.txt: pass 21/25 (db6db6)...
shred: foo.txt: pass 22/25 (555555)...
shred: foo.txt: pass 23/25 (444444)...
shred: foo.txt: pass 24/25 (249249)...
shred: foo.txt: pass 25/25 (random)...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions