summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkar <kar@13f0.net>2024-08-25 16:21:26 -0400
committerkar <kar@13f0.net>2024-08-25 16:21:26 -0400
commita9c7cd5bfcb2a42636ab6f276af94c4847d533c0 (patch)
tree97cf63b16eef19e3c191711376286ce413afa349
parent1d32cffa061847479c31f4192659102355a8d990 (diff)
don't hardcode dd path to /bin/dd, breaks nixos
-rwxr-xr-xcontrib/random2
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"
9SPECIAL='!"#$%&'\''()*+,-./:;<=>?@[\]^_`{|}~' 9SPECIAL='!"#$%&'\''()*+,-./:;<=>?@[\]^_`{|}~'
10 10
11random() { 11random() {
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
15case $1 in 15case $1 in