Pass the rng as reference to randomGenerator constructor

Fixes https://gitlab.com/kicad/code/kicad/issues/9714
This commit is contained in:
Jonathan Haas 2021-11-21 16:13:25 +01:00 committed by Jon Evans
parent b1878fcc54
commit e79fd19326
1 changed files with 1 additions and 1 deletions

View File

@ -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;