diff options
author | Jason A. Donenfeld | 2022-04-20 15:38:46 +0200 |
---|---|---|
committer | Bernhard Reutner-Fischer | 2022-04-20 15:43:00 +0200 |
commit | 3cb40f89de42aa694d44cb6e896b732fa062ee75 (patch) | |
tree | 2d9c6fb0abba89b022f8bb148e93a7409844c3db /testsuite/dirname | |
parent | ce9a345632786d5585044ed71ed4c98c305b918f (diff) | |
download | busybox-3cb40f89de42aa694d44cb6e896b732fa062ee75.zip busybox-3cb40f89de42aa694d44cb6e896b732fa062ee75.tar.gz |
seedrng: avoid needless runtime strlen() call
- Avoid needless runtime strlen() call, bloating binary.
- Replace failed seed string with series of nulls.
function old new delta
.rodata 108350 108338 -12
static.seedrng_prefix 26 - -26
seedrng_main 1000 948 -52
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 0/2 up/down: 0/-90) Total: -90 bytes
text data bss dec hex filename
975919 4227 1816 981962 efbca busybox_old
975829 4227 1816 981872 efb70 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 'testsuite/dirname')
0 files changed, 0 insertions, 0 deletions