aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2014-04-28 21:40:19 +0100
committerRon Yorston <rmy@pobox.com>2014-04-28 21:40:59 +0100
commit5286ae8711099897298d264ae830adabe9dcb998 (patch)
tree91fb374ba9f5e953667a6922695a0b1fda940186 /shell
parentf24b57e5523aa2ebb892357cf525cb4220dd6ba8 (diff)
downloadbusybox-w32-5286ae8711099897298d264ae830adabe9dcb998.tar.gz
busybox-w32-5286ae8711099897298d264ae830adabe9dcb998.tar.bz2
busybox-w32-5286ae8711099897298d264ae830adabe9dcb998.zip
ash: reset $RANDOM in subshell
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 0b6be4aff..3dc666fbb 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -14437,6 +14437,8 @@ forkshell_init(const char *idstr)
14437 *gmpp = fs->gmp; 14437 *gmpp = fs->gmp;
14438 cmdtable = fs->cmdtable; 14438 cmdtable = fs->cmdtable;
14439 14439
14440 CLEAR_RANDOM_T(&random_gen); /* or else $RANDOM repeats in child */
14441
14440 reinitvar(); 14442 reinitvar();
14441 14443
14442 fs->fp(fs); 14444 fs->fp(fs);