summaryrefslogtreecommitdiff
path: root/src/random.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/random.cc')
-rw-r--r--src/random.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/random.cc b/src/random.cc
index 1df9a62..3d94a25 100644
--- a/src/random.cc
+++ b/src/random.cc
@@ -31,11 +31,15 @@
Random::Random()
: Random(std::chrono::system_clock::now().time_since_epoch().count())
{
-
}
Random::Random(unsigned int seed)
{
+ setSeed(seed);
+}
+
+void Random::setSeed(unsigned int seed)
+{
generator.seed(seed);
}