diff options
-rw-r--r-- | src/rand.sh | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/rand.sh b/src/rand.sh index 160e49e..6db1d1c 100644 --- a/src/rand.sh +++ b/src/rand.sh @@ -16,7 +16,6 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. rand_x=1 -rand_seeded=false srand() { @@ -24,18 +23,12 @@ srand() shift 1 rand_x=${x} - rand_seeded=true return 0 } rand() { - # Automatically seed the LCG. - if ! ${rand_seeded}; then - srand $(expr ${$} + $(date '+%s')) - fi - # Increment, multiplier, and modulus values are those used in glibc. rand_x=$((1103515245 * $rand_x + 12345)) rand_x=$(($rand_x % 4294967296)) |