busybox/util-linux
Jason A. Donenfeld 3cb40f89de 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>
2022-04-20 15:43:00 +02:00
..
2021-06-16 17:00:56 +02:00
2021-06-14 20:47:20 +02:00
2021-10-10 14:32:05 +02:00
2021-09-16 01:09:32 +02:00
2021-06-17 13:45:13 +02:00
2021-10-08 14:30:50 +02:00
2021-06-15 10:00:18 +02:00
2021-08-22 00:08:18 +02:00