Boost logo

Boost :

Subject: Re: [boost] boost::random, header-only, boost::uuids::detail::seed_rng, and UWP development
From: degski (degski_at_[hidden])
Date: 2017-09-12 15:38:50


On 12 September 2017 at 18:14, Peter Dimov via Boost <boost_at_[hidden]>
wrote:

> Something like that could probably work, but this is not the correct
> prototype. rand_s returns errno_t. If you try
>

The code I showed compiles and works, it won't allow you to get the
error-code, though...

So it should (because you are right) be (if one is interested in an error
code):

extern "C" int rand_s ( unsigned int* );

degski

-- 
"*Ihre sogenannte Religion wirkt bloß wie ein Opiat reizend, betäubend,
Schmerzen aus Schwäche stillend.*" - Novalis 1798

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