You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cat on /dev/urandom will never finish, as far as I know. This code will use dd to "read" 30 bytes only, which will finish so the temp filename can be generated.
This code is blocking github actions, which is blocking my submission.
Interesting, thanks for reporting and sorry for the slow response, I didn't have notifications setup correctly for this repo.
Regarding:
cat on /dev/urandom will never finish, as far as I know.
I think that's a correct statement, however the combination of fold -w32 | head -n 1 should mean the command exits after the first 32 characters which were in the set 'a-zA-Z0-9' were generated. So I suspect some issue with your random number generator which means it isn't returning any characters in this set or isn't returning enough characters in this set for some reason. I can't reproduce and I'm not aware of anyone else reproducing.
I think your proposed change would fail if you got no characters in the set 'a-zA-Z0-9' within the first 30 bytes obtained from urandom, so that is probably not the best approach either.
I think it should be possible to use mktemp here instead and this might be the safest change to make.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
caton/dev/urandomwill never finish, as far as I know. This code will useddto "read" 30 bytes only, which will finish so the temp filename can be generated.This code is blocking github actions, which is blocking my submission.
I'm running Ubuntu 20.04.5 LTS.