From e79fd193268c075b400c56799b6a9efd7d308c1d Mon Sep 17 00:00:00 2001 From: Jonathan Haas Date: Sun, 21 Nov 2021 16:13:25 +0100 Subject: [PATCH] Pass the rng as reference to randomGenerator constructor Fixes https://gitlab.com/kicad/code/kicad/issues/9714 --- common/kiid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/kiid.cpp b/common/kiid.cpp index 5b34b80ff3..07c21b2d24 100644 --- a/common/kiid.cpp +++ b/common/kiid.cpp @@ -38,7 +38,7 @@ // Create only once, as seeding is *very* expensive static boost::mt19937 rng; -static boost::uuids::basic_random_generator randomGenerator( &rng ); +static boost::uuids::basic_random_generator randomGenerator( rng ); // These don't have the same performance penalty, but might as well be consistent static boost::uuids::string_generator stringGenerator;