https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68925
Bug ID: 68925 Summary: uniform_int_distribution needs not to be thread_local in std::experimental::randint Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: lichray at gmail dot com Target Milestone: --- libstdc++'s uniform_int_distribution is stateless, thus just return _Dist(a, b)(_S_randint_engine()); will do the work, and produces more compact binary.