Boost logo

Boost :

Subject: Re: [boost] boost::random, header-only, boost::uuids::detail::seed_rng, and UWP development
From: Gavin Lambert (gavinl_at_[hidden])
Date: 2017-09-13 23:28:57


On 14/09/2017 10:21, Edward Diener wrote:
> On 9/12/2017 9:27 AM, degski wrote:
>
> Is not rand_s VC++ specific ? There really are other compilers on
> Windows other than VC++ ( I can test clang, gcc, and Intel for Windows).

rand_s is MSVCRT specific. But AFAIK gcc and clang both use MSVCRT on
Windows anyway, so it should work (though might depend on the age of the
CRT used).

If in doubt, you could use RtlGenRandom instead, as Peter Dimov
suggested, since this is the OS-level API.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk