$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: pbristow_at_[hidden]
Date: 2020-06-17 14:53:33
I have wanted to use boost::random::random_device; as a seeder for my generator.
#include <boost/random/random_device.hpp> // For boost::random::random_device; seeder
But using this requires that I link to a library file
// LINK : fatal error LNK1104: cannot open file 'libboost_random-vc142-mt-gd-x64-1_73.lib'
So I have instead used C++ std random device successfully
using std::random_device;
random_device seeder;
// Use seeder to get a different set of values each time.
static boost::random::mt19937 gen(seeder()); // uint32_t
But is there any way I can stick to the Boost version (I imagine that it might prove more portable?
Or is this a delusion?)
Suggestions welcome.
Paul