aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/die.h
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2019-12-18 01:06:13 +0100
committerRenaud G <renaud@rolisteam.org>2019-12-22 01:19:23 +0100
commite285f99759c3edd2d7d0cb4ff4280b5d2fd984da (patch)
tree2ebdffb0218632b603e651b0e99234d330f530ca /die.h
parent0499b503e8ad9c5820df115569effaca8a957777 (diff)
downloadOneRoll-e285f99759c3edd2d7d0cb4ff4280b5d2fd984da.tar.gz
OneRoll-e285f99759c3edd2d7d0cb4ff4280b5d2fd984da.zip
Performance improvement: mt19937 is not static
Diffstat (limited to 'die.h')
-rw-r--r--die.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/die.h b/die.h
index 52ba7a2..aaec506 100644
--- a/die.h
+++ b/die.h
@@ -161,7 +161,7 @@ private:
Die::ArithmeticOperator m_op;
- std::mt19937 m_rng;
+ static std::mt19937 s_rng;
};
#endif // DIE_H