|
Boost :
|
- Next message: Peter Dimov: "Re: [boost] boost::random, header-only, boost::uuids::detail::seed_rng, and UWP development"
- Previous message: Andrey Semashev: "Re: [boost] boost::random, header-only, boost::uuids::detail::seed_rng, and UWP development"
- In reply to: Peter Dimov: "Re: [boost] boost::random, header-only, boost::uuids::detail::seed_rng, and UWP development"
- Next in thread: Peter Dimov: "Re: [boost] boost::random, header-only, boost::uuids::detail::seed_rng, and UWP development"
- Reply: Peter Dimov: "Re: [boost] boost::random, header-only, boost::uuids::detail::seed_rng, and UWP development"
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
- Next message: Peter Dimov: "Re: [boost] boost::random, header-only, boost::uuids::detail::seed_rng, and UWP development"
- Previous message: Andrey Semashev: "Re: [boost] boost::random, header-only, boost::uuids::detail::seed_rng, and UWP development"
- In reply to: Peter Dimov: "Re: [boost] boost::random, header-only, boost::uuids::detail::seed_rng, and UWP development"
- Next in thread: Peter Dimov: "Re: [boost] boost::random, header-only, boost::uuids::detail::seed_rng, and UWP development"
- Reply: Peter Dimov: "Re: [boost] boost::random, header-only, boost::uuids::detail::seed_rng, and UWP development"
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk