[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: ntdll: Randomize security cookie when available (try 4)
From:       Alexandre Julliard <julliard () winehq ! org>
Date:       2015-06-30 12:10:05
Message-ID: 87fv59wg6a.fsf () winehq ! org
[Download RAW message or body]

André Hentschel <nerv@dawncrow.de> writes:

> Where would you see the best point for srand()?
> __wine_process_init()?
> Should i do it with a "once" variable?
> Or would you prefer something like in SystemFunction036 using /dev/urandom (suggested by Bruno)?

Using srand() is not a good idea since it's process-global. Something
like RtlRandom is probably better.

-- 
Alexandre Julliard
julliard@winehq.org



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic