Boost logo

Boost :

Subject: Re: [boost] boost::random, header-only, boost::uuids::detail::seed_rng, and UWP development
From: Peter Dimov (lists_at_[hidden])
Date: 2017-09-12 15:14:57

degski wrote:

> The below works just fine for me, no header:
> #include <iostream>
> extern "C" void rand_s ( unsigned int* );

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

#define _CRT_RAND_S
#include <stdlib.h>

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

you get an error.

errno_t seems to be just a typedef for int though.

Boost list run by bdawes at, gregod at, cpdaniel at, john at