crappy random initialization for windows