summaryrefslogtreecommitdiff
path: root/klibc-utils
diff options
context:
space:
mode:
authorJason A. Donenfeld2022-04-21 12:37:32 +0200
committerBernhard Reutner-Fischer2022-04-24 10:01:07 +0200
commitf9ea8ba5ed6d43b8b233eac433521eb158e359d1 (patch)
treea6821c4598b703f3a8a336d4b64136857c177501 /klibc-utils
parent831c754c91f798c53a133bc2cb84eaf38ed32352 (diff)
downloadbusybox-f9ea8ba5ed6d43b8b233eac433521eb158e359d1.zip
busybox-f9ea8ba5ed6d43b8b233eac433521eb158e359d1.tar.gz
seedrng: code-golf even smaller
Since we're passing 0 as the timeout, we don't need safe_poll. Remove cleanup at end of program, since OS does that, which lets us simplify control flow. Factor repeated function calls into ternary loop. function old new delta seedrng_main 1061 1459 +398 seed_from_file_if_exists 468 - -468 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 1/0 up/down: 398/-468) Total: -70 bytes text data bss dec hex filename 1052781 16515 1816 1071112 105808 busybox_old 1052711 16515 1816 1071042 1057c2 busybox_unstripped Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'klibc-utils')
0 files changed, 0 insertions, 0 deletions