summaryrefslogtreecommitdiff
path: root/audio/timidity
diff options
context:
space:
mode:
authormycroft <mycroft>1998-03-07 19:21:36 +0000
committermycroft <mycroft>1998-03-07 19:21:36 +0000
commitb0941033c96336a4b2d80ed2dd5702f5a83b0479 (patch)
tree5330ef46d869555807626c629e348d20b77d98db /audio/timidity
parentc4bc5b5f64e5ed79b9b7d8c25cf4860a42ae3f54 (diff)
downloadpkgsrc-b0941033c96336a4b2d80ed2dd5702f5a83b0479.tar.gz
Use jot(1) rather than bash to generate random numbers, since it will always
be installed.
Diffstat (limited to 'audio/timidity')
-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]
+ }