On Thu, May 03, 2001 at 05:14:17PM +0400, egor duda wrote:
> Hi!
> 
> Thursday, 03 May, 2001 Corinna Vinschen [EMAIL PROTECTED] wrote:
> 
> CV> Couldn't you use an instance of fhandler_dev_random?
> 
> ok, here it goes.
> 
> 2001-05-03  Egor Duda  <[EMAIL PROTECTED]>
> 
>         * fhandler_socket.cc (set_connect_secret): Use /dev/random to
>         generate secret cookie.
> 
> Egor.            mailto:[EMAIL PROTECTED] ICQ 5165414 FidoNet 2:5020/496.19

> i can. the only thing that worries me i that CryptGenRandom() may block
> for unpredictable and random amount of time.

I never saw that. It's true for /dev/random on U*X platforms but
I found no hint for that in the MSDN. Do you have a source for
that info?

A minor knit. I think it's better to use /dev/urandom instead
of /dev/random for that purpose since it uses the pseudo random
number generator if the CryptoAPI bails out. Base W95 don't have
a CryptoAPI for example and you can avoid an error in
read() when using /dev/urandom.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:[EMAIL PROTECTED]
Red Hat, Inc.

Reply via email to