Use stable random seed

This commit is contained in:
vvb2060
2023-03-08 06:52:09 +08:00
committed by John Wu
parent 5117dc1a31
commit 46ce765860
6 changed files with 56 additions and 24 deletions

View File

@@ -173,6 +173,8 @@ if [ -n "$PREINITDEVICE" ]; then
echo "PREINITDEVICE=$PREINITDEVICE" >> config
fi
[ -n "$SHA1" ] && echo "SHA1=$SHA1" >> config
RANDOMSEED=$(tr -dc 'a-f0-9' < /dev/urandom | head -c 16)
echo "RANDOMSEED=0x$RANDOMSEED" >> config
./magiskboot cpio ramdisk.cpio \
"add 0750 $INIT magiskinit" \