ash: factor out $RANDOM support
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 9 Oct 2009 18:59:04 +0000 (20:59 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 9 Oct 2009 18:59:04 +0000 (20:59 +0200)
commit3ea2e82dc7b32703f5043c3b30b049905a0d07aa
treeeae992a986a4ce66efa32845ecccc204a0c4c0e1
parenta05b2b856bf095dfd5f575c106d1a9e5ac6edd3c
ash: factor out $RANDOM support

function                                             old     new   delta
next_random                                            -      46     +46
ash_main                                            1361    1356      -5
change_random                                        132      97     -35
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/2 up/down: 46/-40)              Total: 6 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/Kbuild
shell/ash.c
shell/random.c [new file with mode: 0644]
shell/random.h [new file with mode: 0644]