summaryrefslogtreecommitdiffstats
path: root/src/rand.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/rand.sh')
-rw-r--r--src/rand.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rand.sh b/src/rand.sh
index 872d3fb..f2b3cd4 100644
--- a/src/rand.sh
+++ b/src/rand.sh
@@ -37,6 +37,6 @@ srand()
rand()
{
# Increment, multiplier, and modulus values are those used in glibc.
- rand_x=$((1103515245 * $rand_x + 12345))
- rand_x=$(($rand_x % 4294967296))
+ rand_x=$((1103515245 * ${rand_x} + 12345))
+ rand_x=$((${rand_x} % 4294967296))
}