improve entropy hardware hash generator
This commit is contained in:
@@ -7,4 +7,6 @@
|
||||
|
||||
ifconfig_output=$(/sbin/ifconfig -a | grep HWaddr 2> /dev/null)
|
||||
lspci_output=$(/usr/sbin/lspci -n | cut -d" " -f 3- 2> /dev/null)
|
||||
echo $ifconfig_output$lspci_output | /usr/bin/sha256sum | cut -d" " -f 1
|
||||
random_seed=$(echo $RANDOM$RANDOM$RANDOM)
|
||||
echo $ifconfig_output$lspci_output$random_seed | /usr/bin/sha256sum | \
|
||||
cut -d" " -f 1
|
||||
|
||||
Reference in New Issue
Block a user