Add more random into the SSL seed. Thanks Axel.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41844 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Clemens Zeidler 2011-05-30 21:50:13 +00:00
parent d75a906285
commit 3b0616a46b
1 changed files with 4 additions and 4 deletions

View File

@ -53,10 +53,10 @@ public:
return;
}
RAND_seed(this, sizeof(InitSSL));
/*--- Because we're an add-on loaded at an unpredictable time, all the
memory addresses and things contained in ourself are esssentially
random. */
// use combination of more or less random this pointer and system time
int64 seed = (int64)this + system_time();
RAND_seed(&seed, sizeof(seed));
fInit = true;
return;
};