aboutsummaryrefslogtreecommitdiff
path: root/shell/Config.in
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-03-16 05:14:10 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-03-16 05:14:10 +0000
commit79ad967cd66dd37561088ed5ccd9dd65d9502c24 (patch)
tree60d41b5ef57193173d1eecd747a0ddb3130e90ea /shell/Config.in
parent41fde650025d57fc0acdaaf7bd47bd20a5b109ad (diff)
downloadbusybox-w32-79ad967cd66dd37561088ed5ccd9dd65d9502c24.tar.gz
busybox-w32-79ad967cd66dd37561088ed5ccd9dd65d9502c24.tar.bz2
busybox-w32-79ad967cd66dd37561088ed5ccd9dd65d9502c24.zip
Patch from vodz to fix the dynamic vars patch, which I should not
have checked in. Vladimir writes: Your patch have many problem. 1. You always added + time(). This cannot reset RANDOM=value for debuging with replay sequential. 2. Hmm. I examine bash 2.04 source. This pseudorandom generator use low bits of counter value. You use high bits. This make bad pseudorandom values after have 0-value. For example, if + time() do remove, your generator always return 0 after first generate 0. 3. Memory leak per call. Use ash-unlike unecessary bb_strdup function. 4. Unsupport show last $RANDOM value for "set" and "export" command. 5. Bloat code. Busybox-unlike patch - added unstandart feature as default hardcode. Last patch attached. Erik, why you apply Paul patch with have 5-th point problem? :( Last patch have ash change xwrite() to fresh libbb/bb_full_write interfase (haved loop after EINTR). --w vodz git-svn-id: svn://busybox.net/trunk/busybox@8632 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'shell/Config.in')
-rw-r--r--shell/Config.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/shell/Config.in b/shell/Config.in
index bcb5e719b..34baaa45c 100644
--- a/shell/Config.in
+++ b/shell/Config.in
@@ -97,6 +97,17 @@ config CONFIG_ASH_OPTIMIZE_FOR_SIZE
97 help 97 help
98 Compile ash for reduced size at price of speed. 98 Compile ash for reduced size at price of speed.
99 99
100config CONFIG_ASH_RANDOM_SUPPORT
101 bool " Enable pseudorandom generator and variable $RANDOM"
102 default n
103 depends on CONFIG_ASH
104 help
105 Enable pseudorandom generator and dynamic variable "$RANDOM".
106 Each read of "$RANDOM" will generate a new pseudorandom value.
107 You can reset the generator by using a specified start value.
108 After "unset RANDOM" then generator will switch off and this
109 variable will no longer have special treatment.
110
100config CONFIG_HUSH 111config CONFIG_HUSH
101 bool "hush" 112 bool "hush"
102 default n 113 default n