From 44e452fb3c8cc7a093d72fbc280be3973e627a62 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Fri, 19 Apr 2019 21:26:04 -0400 Subject: Add braces to param exps in arith substs --- (limited to 'src/rand.sh') 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)) } -- cgit v0.9.1