base-files: reduce IPv6 ULA prefix generation to a single call
authorPaul Donald <newtwen+github@gmail.com>
Fri, 29 Mar 2024 15:04:30 +0000 (16:04 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Thu, 18 Apr 2024 10:55:31 +0000 (12:55 +0200)
commit27edf28b11f179eb9fc6ab159b68b2fe97ffdf1e
tree1c01e188793ef41ed10f07cde453d37da2e2e2ef
parentb0422af1b3c7bb227620f0b1ff5552f9148f5a43
base-files: reduce IPv6 ULA prefix generation to a single call

Reduce calls and pipes and read from urandom once directly with hexdump
for the necessary 5 bytes of random data to build the 48 bit ULA Prefix.

Fewer calls and forks; finish quicker; less memory used.

Tested on: 23.05.3

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
package/base-files/files/etc/uci-defaults/12_network-generate-ula