diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2014-03-13 13:03:27 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2014-03-13 13:03:27 +0100 |
commit | f93187512d0a8db6b7160088d3d0b325dd83c937 (patch) | |
tree | 3ec4e0b1a24d23096e1919239813a86793508f13 /shell | |
parent | fb183076a3a6580a4aba435c53ce033ef89e7fe6 (diff) | |
download | busybox-w32-f93187512d0a8db6b7160088d3d0b325dd83c937.tar.gz busybox-w32-f93187512d0a8db6b7160088d3d0b325dd83c937.tar.bz2 busybox-w32-f93187512d0a8db6b7160088d3d0b325dd83c937.zip |
random: cosmetic tweaks in debug code
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell')
-rw-r--r-- | shell/random.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/random.c b/shell/random.c index 9a64f54b0..fc2dfc26d 100644 --- a/shell/random.c +++ b/shell/random.c | |||
@@ -24,12 +24,12 @@ | |||
24 | # include <unistd.h> | 24 | # include <unistd.h> |
25 | # include <stdio.h> | 25 | # include <stdio.h> |
26 | # include <time.h> | 26 | # include <time.h> |
27 | # define RAND_BASH_MASK 0xffffffff /* off */ | ||
28 | # define FAST_FUNC /* nothing */ | 27 | # define FAST_FUNC /* nothing */ |
29 | # define PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN /* nothing */ | 28 | # define PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN /* nothing */ |
30 | # define POP_SAVED_FUNCTION_VISIBILITY /* nothing */ | 29 | # define POP_SAVED_FUNCTION_VISIBILITY /* nothing */ |
31 | # define monotonic_us() time(NULL) | 30 | # define monotonic_us() time(NULL) |
32 | # include "random.h" | 31 | # include "random.h" |
32 | # define RAND_BASH_MASK 0xffffffff /* off */ | ||
33 | #endif | 33 | #endif |
34 | 34 | ||
35 | uint32_t FAST_FUNC | 35 | uint32_t FAST_FUNC |
@@ -139,7 +139,7 @@ static random_t rnd; | |||
139 | int main(int argc, char **argv) | 139 | int main(int argc, char **argv) |
140 | { | 140 | { |
141 | int i; | 141 | int i; |
142 | int buf[4096]; | 142 | uint32_t buf[4096]; |
143 | 143 | ||
144 | for (;;) { | 144 | for (;;) { |
145 | for (i = 0; i < sizeof(buf) / sizeof(buf[0]); i++) { | 145 | for (i = 0; i < sizeof(buf) / sizeof(buf[0]); i++) { |