AAI: fix win32 compile, initialize random generator only once