Thanks Charles I'll try this one
Ajay. ----- Original Message ----- From: "CHARLES CHEBLI" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 03, 2003 6:05 PM Subject: Re: seeding the PRNG on Windows > Hi > You can use egads that is free and you can download it from > http://www.securesw.com/egads/ > > An example of seeding the PRNG of OpenSSL with EGADS is the following: > > int seed_prng(int bytes) > { > int errors; > char *buf; > prngctx_t ctx; > > egads_init(&ctx, NULL, NULL, &error); > if(error) > return 0; > > buf = (char*)malloc(bytes); > egads_entropy(&ctx, buf, bytes, &error); > if(!error) > RAND_seed(buf, bytes); > free(buf); > > egads_destroy(&ctx); > return(!error); > } > > } > > > > > Charles Chebli > Ingénieur Informatique,Telecom; > Adresse: 212, Rue de Tolbiac, Paris 75013 > Portable: 0677703467 > CC > > > > > > >From: "Ajay" <[EMAIL PROTECTED]> > >Reply-To: [EMAIL PROTECTED] > >To: "OpenSSL Users" <[EMAIL PROTECTED]> > >Subject: seeding the PRNG on Windows > >Date: Thu, 3 Apr 2003 16:41:08 +0530 > > > >Hello All, > > > >I am new to OpenSSL programming and needed some advice. Could someone tell > >me, what is the usual way of seeding the PRNG in OpenSSL. I am developing > >my > >server application for Windows platform. Hence I wanted to know the general > >practice which everyone is following for Windows since there are no > >"/dev/*random" devices. Also since I'm developing a server application, > >hence I thought that the "RAND_screen" function also might not be too > >helpful. > > > >Thanks in advance, > > > >Ajay. > > ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]