-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: implement shred --random-source
#7005
base: main
Are you sure you want to change the base?
Conversation
73d493c
to
adcd222
Compare
If you are fixing issue #5711 you are doing more than just a refactor.
|
move random_source to uucore
move random_source to uucore
, feat: --random-source shred
move random_source to uucore
, feat: --random-source shredshred --random-source
Looks great but seems that it is failing the GNU test:
|
tests/by-util/test_shred.rs
Outdated
at.touch(random_file); | ||
at.write(random_file, "random contents"); | ||
|
||
ucmd.arg("--random-source=test_random_file") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add a test to verify the behavior if the file is missing
GNU testsuite comparison:
|
rand_read
rand_read_adapter
fromshuf
random_source
toshred
Closes #5711