summaryrefslogtreecommitdiff
path: root/libc/stdlib/rand.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-12-01 09:43:37 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-12-01 09:43:37 +0000
commit94ecebc42368bd20dc671baaf397c136c530d09d (patch)
tree0ff49d2dab95a69bdcd8891be2df5caaab09018d /libc/stdlib/rand.c
parent3b1b9d4638f0b92c161453f2896355183296803f (diff)
random: use smaller data fields where appropriate
text data bss dec hex filename - 130 156 0 286 11e libc/stdlib/random.o + 130 148 0 278 116 libc/stdlib/random.o - 586 0 0 586 24a libc/stdlib/random_r.o + 570 0 0 570 23a libc/stdlib/random_r.o
Diffstat (limited to 'libc/stdlib/rand.c')
-rw-r--r--libc/stdlib/rand.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libc/stdlib/rand.c b/libc/stdlib/rand.c
index 61aaa9105..93fc01483 100644
--- a/libc/stdlib/rand.c
+++ b/libc/stdlib/rand.c
@@ -9,8 +9,7 @@
/* libc_hidden_proto(random) */
-int rand (void)
+int rand(void)
{
- return((int)random());
+ return (int)random();
}
-