Windows doesn't seem to support arc4random. Is there a preprocessor macro I can use to identify if arc4random is supported by the platform I'm compiling for ?
Windows doesn't seem to support arc4random. Is there a preprocessor macro I can use to identify if arc4random is supported by the platform I'm compiling for ?
BCryptGenRandomshould provide a working solution - on Windows and Windows only. Other than that, what are the options? Presumably,<random>does not satisfy the OP or he would not be looking elsewhere.