diff options
| author | kar <kar@13f0.net> | 2024-08-25 16:21:26 -0400 |
|---|---|---|
| committer | kar <kar@13f0.net> | 2024-08-25 16:21:26 -0400 |
| commit | a9c7cd5bfcb2a42636ab6f276af94c4847d533c0 (patch) | |
| tree | 97cf63b16eef19e3c191711376286ce413afa349 /contrib | |
| parent | 1d32cffa061847479c31f4192659102355a8d990 (diff) | |
don't hardcode dd path to /bin/dd, breaks nixos
Diffstat (limited to 'contrib')
| -rwxr-xr-x | contrib/random | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/random b/contrib/random index 10ddda7..f4b28d6 100755 --- a/contrib/random +++ b/contrib/random | |||
| @@ -9,7 +9,7 @@ NUM="0-9" | |||
| 9 | SPECIAL='!"#$%&'\''()*+,-./:;<=>?@[\]^_`{|}~' | 9 | SPECIAL='!"#$%&'\''()*+,-./:;<=>?@[\]^_`{|}~' |
| 10 | 10 | ||
| 11 | random() { | 11 | random() { |
| 12 | </dev/urandom tr -dc "${ALPHA}${NUM}${SPECIAL}" | /bin/dd bs=1 count=${LEN:-32} 2>/dev/null ; echo | 12 | </dev/urandom tr -dc "${ALPHA}${NUM}${SPECIAL}" | dd bs=1 count=${LEN:-32} 2>/dev/null ; echo |
| 13 | } | 13 | } |
| 14 | 14 | ||
| 15 | case $1 in | 15 | case $1 in |
