ntdll: Randomize security cookie when available (try 4)

Alexandre Julliard julliard at winehq.org
Tue Jun 30 07:10:05 CDT 2015


André Hentschel <nerv at 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 at winehq.org



More information about the wine-devel mailing list