Repository navigation
Conversation
|
I prefer fallback in the case... |
|
Just a general point on any commit. where: why... what... |
|
Better. Now we have to consider portability. The getrandom syscall was introduced in Linux 3.17. I see uu_shuf panics with this, so if testing graceful handling I suppose you could just check the return code is either 0 or 1. Also EAGAIN could be problematic as conceivably implementations might retry with EAGAIN. |
|
Is ther any real situation that |
|
I think |
Right, but that doesn't panic with uutils and in fact uu_shuf falls back to /dev/urandom while GNU shuf does not. |
|
At tag/latest-commit, I see |
|
Interesting uu_shuf 0.0.27 handled ENOSYS with the fallback |
|
So ENOSYS is probably best then, and we can decide if fall back behavior is used in future |
This comment was marked as resolved.
This comment was marked as resolved.
|
Pushed at 05443ce67 |
This comment was marked as resolved.
This comment was marked as resolved.
* tests/shuf/shuf.sh: Check we fail normally or succeed where the getrandom syscall is not available. #205
No description provided.