mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user