From 74f472d2e54f04213d4daf89a6a26257cf4386b1 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Thu, 28 May 2009 06:43:51 +0200 Subject: [PATCH] improve entropy hardware hash generator --- misc/entropy_hwgen.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/misc/entropy_hwgen.sh b/misc/entropy_hwgen.sh index 3fea241da..5776d7a39 100755 --- a/misc/entropy_hwgen.sh +++ b/misc/entropy_hwgen.sh @@ -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