aboutsummaryrefslogtreecommitdiff
path: root/src/dice.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/dice.h')
-rw-r--r--src/dice.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/dice.h b/src/dice.h
index f9975bc..08910a7 100644
--- a/src/dice.h
+++ b/src/dice.h
@@ -1,9 +1,5 @@
#pragma once
-#include <random>
-std::mt19937 gen(std::random_device{}());
-
-int roll(int d) {
- std::uniform_int_distribution<> dist(1, d);
- return dist(gen);
+namespace dice {
+ int roll(int d);
}