summaryrefslogtreecommitdiff
path: root/audio/timidity/patches
diff options
context:
space:
mode:
authormycroft <mycroft@pkgsrc.org>1998-03-07 19:21:36 +0000
committermycroft <mycroft@pkgsrc.org>1998-03-07 19:21:36 +0000
commit823f06b851832764ca82e55d2cb9a4a436ac5696 (patch)
tree5330ef46d869555807626c629e348d20b77d98db /audio/timidity/patches
parent039447669603c00358aacd94cf4884eb200c950b (diff)
downloadpkgsrc-823f06b851832764ca82e55d2cb9a4a436ac5696.tar.gz
Use jot(1) rather than bash to generate random numbers, since it will always
be installed.
Diffstat (limited to 'audio/timidity/patches')
-rw-r--r--audio/timidity/patches/patch-be11
1 files changed, 11 insertions, 0 deletions
diff --git a/audio/timidity/patches/patch-be b/audio/timidity/patches/patch-be
new file mode 100644
index 00000000000..42755dea21f
--- /dev/null
+++ b/audio/timidity/patches/patch-be
@@ -0,0 +1,11 @@
+--- misc.tcl.orig Fri Mar 29 04:19:49 1996
++++ misc.tcl Sat Mar 7 14:17:27 1998
+@@ -207,7 +207,7 @@
+ proc my-random {max} {
+ global pseudo_random
+ if {$pseudo_random} {
+- return [expr [exec bash -c {echo $RANDOM}] % $max]
++ return [exec jot -r 1 0 [expr $max - 1]]
+ } else {
+ return [random $max]
+ }