busybox/util-linux
Jason A. Donenfeld 31ec481baf seedrng: hoist bb_strtoul out of min/max
- Hoist bb_strtoul out of min/max to prevent quadruple evaluation.
- Don't use separate variables for boottime/realtime.
- Make use of ENABLE_FEATURE_CLEAN_UP where appropriate.
- Order hash initialization after lock taking per Bernhard's taste.
- Add comment description of theory of operation.

function                                             old     new   delta
seed_from_file_if_exists                             533     456     -77
seedrng_main                                        1218    1086    -132
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-209)           Total: -209 bytes
   text	   data	    bss	    dec	    hex	filename
 976445	   4227	   1848	 982520	  efdf8	busybox_old
 976236	   4227	   1848	 982311	  efd27	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:42:53 +02:00
..
2020-08-13 17:12:56 +02:00
2021-06-16 17:00:56 +02:00
2021-06-14 20:47:20 +02:00
2020-08-13 17:12:56 +02:00
2018-12-28 03:20:17 +01:00
2020-08-13 17:12:56 +02:00
2020-08-13 17:12:56 +02:00
2021-10-10 14:32:05 +02:00
2020-08-13 17:12:56 +02:00
2021-06-13 03:51:55 +02:00
2020-08-13 17:12:56 +02:00
2021-09-16 01:09:32 +02:00
2021-06-17 13:45:13 +02:00
2018-12-28 03:20:17 +01:00
2021-10-08 14:30:50 +02:00
2020-08-13 17:12:56 +02:00
2018-12-28 03:20:17 +01:00
2021-06-13 03:51:55 +02:00
2020-08-13 17:12:56 +02:00
2018-12-28 03:20:17 +01:00
2021-06-13 03:51:55 +02:00
2021-06-15 10:00:18 +02:00
2021-08-22 00:08:18 +02:00
2018-12-28 03:20:17 +01:00
2020-08-13 17:12:56 +02:00
2020-12-18 04:12:51 +01:00
2018-12-28 03:20:17 +01:00
2020-08-13 17:12:56 +02:00
2020-12-18 04:12:51 +01:00
2018-12-28 03:20:17 +01:00