Be less greedy with the entropy pool.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3497 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Dave Peticolas
2001-01-18 23:54:14 +00:00
parent e3717b5d5a
commit c1f863e074

View File

@@ -221,11 +221,16 @@ guid_init(void)
md5_init_ctx(&guid_context);
/* entropy pool */
{
init_from_file ("/dev/random", 256);
init_from_file ("/dev/urandom", 256);
}
/* files */
{
const char * files[] =
{ "/dev/urandom",
"/etc/passwd",
{ "/etc/passwd",
"/proc/loadavg",
"/proc/meminfo",
"/proc/net/dev",
@@ -234,7 +239,6 @@ guid_init(void)
"/proc/self/stat",
"/proc/stat",
"/proc/uptime",
"/dev/urandom", /* once more for good measure :) */
NULL
};
int i;