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