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 14:56:45


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

> ... making random_device header-only would indeed be useful, as long as we
> don't include <windows.h>.
>

 The below works just fine for me, no header:

#include <iostream>

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

int main ( ) {

    unsigned int x;

    rand_s ( &x );

    std::cout << x << '\n';

    return 0;
}

Isn't "C" great (sometimes).

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