mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2025-11-18 22:12:56 -05:00
switch to xxd for converting random bytes to hex
This commit is contained in:
parent
d125eb96ca
commit
173822655c
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ umask 077
|
|||
if [[ -e /etc/tcp_fastopen_seed ]]; then
|
||||
rand=$(b3sum --keyed -l 16 --no-names </etc/tcp_fastopen_seed <(date -uI))
|
||||
else
|
||||
rand=$(openssl rand -hex 16)
|
||||
rand=$(xxd -l 16 -p /dev/random)
|
||||
fi
|
||||
|
||||
new_key=${rand:0:8}-${rand:8:8}-${rand:16:8}-${rand:24:8}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue