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:
parent
d75a906285
commit
3b0616a46b
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue