temporary non thread safe randomVector workaround for OSX