On Mon, 3 Dec 2001, Herold Heiko wrote:
> However it still won' work due to mising
>
> gen_sslfunc.obj : error LNK2001: unresolved external symbol _lrand48
> gen_sslfunc.obj : error LNK2001: unresolved external symbol _srand48
>
> In fact looking through the VC++ documentation there doesn't seem to be a
> rand48() available.
You can replace those onse with just plain rand() and srand() or just write
your own.
No one in their right mind shall ever depend on using that random value
anyway for anything that pretends to be secure, as that wouldn't be
considered random enough, and thus it is not secure enough to use for seeding
SSL.
If /dev/urandom or similar isn't present, a serious SSL-using person should
provide a good random source himself. If not, there's not much difference in
using lrand48() or just plain rand(). They're both software (faked) random
generators.
For windows users, I recommend using the RAND_screen() function (it is only
presen in windows), it uses the current displayed screen as input to the
random engine.
Of course, I may be completely wrong.
--
Daniel Stenberg - http://daniel.haxx.se - +46-705-44 31 77
ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol