Pass the rng as reference to randomGenerator constructor
Fixes https://gitlab.com/kicad/code/kicad/issues/9714
This commit is contained in:
parent
b1878fcc54
commit
e79fd19326
|
@ -38,7 +38,7 @@
|
||||||
|
|
||||||
// Create only once, as seeding is *very* expensive
|
// Create only once, as seeding is *very* expensive
|
||||||
static boost::mt19937 rng;
|
static boost::mt19937 rng;
|
||||||
static boost::uuids::basic_random_generator<boost::mt19937> randomGenerator( &rng );
|
static boost::uuids::basic_random_generator<boost::mt19937> randomGenerator( rng );
|
||||||
|
|
||||||
// These don't have the same performance penalty, but might as well be consistent
|
// These don't have the same performance penalty, but might as well be consistent
|
||||||
static boost::uuids::string_generator stringGenerator;
|
static boost::uuids::string_generator stringGenerator;
|
||||||
|
|
Loading…
Reference in New Issue