-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat: implement shred --random-source
#7005
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
Conversation
73d493c to
adcd222
Compare
|
If you are fixing issue #5711 you are doing more than just a refactor.
|
move random_source to uucoremove 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: |
a4ad654 to
fb915a4
Compare
|
fails with: |
|
GNU testsuite comparison: |
|
note that i started #6243 |
|
Sorry, I didn't see that you already had an open pull request. Thing is because |
|
@f8ith, are you still working on this?
|
Feel free to take over this PR. |
|
See #7948. |
rand_readrand_read_adapterfromshufrandom_sourcetoshredCloses #5711