summaryrefslogtreecommitdiffstats
path: root/src/FastRandom.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2017-07-21 12:06:21 +0200
committerGitHub <noreply@github.com>2017-07-21 12:06:21 +0200
commit895987a1112100a209b345eab002366fee39d7aa (patch)
tree3e6db769934b8648324bc05eac6bc6427b110bbc /src/FastRandom.h
parentBreak the cactus block when it grows next to a block. (#3851) (diff)
downloadcuberite-895987a1112100a209b345eab002366fee39d7aa.tar
cuberite-895987a1112100a209b345eab002366fee39d7aa.tar.gz
cuberite-895987a1112100a209b345eab002366fee39d7aa.tar.bz2
cuberite-895987a1112100a209b345eab002366fee39d7aa.tar.lz
cuberite-895987a1112100a209b345eab002366fee39d7aa.tar.xz
cuberite-895987a1112100a209b345eab002366fee39d7aa.tar.zst
cuberite-895987a1112100a209b345eab002366fee39d7aa.zip
Diffstat (limited to 'src/FastRandom.h')
-rw-r--r--src/FastRandom.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/FastRandom.h b/src/FastRandom.h
index 77bafc217..7c3048118 100644
--- a/src/FastRandom.h
+++ b/src/FastRandom.h
@@ -77,8 +77,8 @@ public:
/** Return a random IntType in the range [a_Min, a_Max]. */
- template <class IntType = int, class ArgType>
- IntType RandInt(ArgType a_Min, ArgType a_Max)
+ template <class IntType = int>
+ IntType RandInt(IntType a_Min, IntType a_Max)
{
ASSERT(
(a_Max >= a_Min) &&
@@ -97,8 +97,8 @@ public:
/** Return a random IntType in the range [0, a_Max]. */
- template <class IntType = int, class ArgType>
- IntType RandInt(ArgType a_Max)
+ template <class IntType = int>
+ IntType RandInt(IntType a_Max)
{
ASSERT((a_Max >= 0) && (a_Max <= std::numeric_limits<IntType>::max()));
Detail::cUniform<IntType> dist(IntType(0), static_cast<IntType>(a_Max));
@@ -122,8 +122,8 @@ public:
/** Return a random RealType in the range [a_Min, a_Max). */
- template <class RealType = float, class ArgType>
- RealType RandReal(ArgType a_Min, ArgType a_Max)
+ template <class RealType = float>
+ RealType RandReal(RealType a_Min, RealType a_Max)
{
std::uniform_real_distribution<RealType> dist(a_Min, a_Max);
return dist(m_Engine);
@@ -134,8 +134,8 @@ public:
/** Return a random RealType in the range [0, a_Max). */
- template <class RealType = float, class ArgType>
- RealType RandReal(ArgType a_Max)
+ template <class RealType = float>
+ RealType RandReal(RealType a_Max)
{
std::uniform_real_distribution<RealType> dist(RealType(0), a_Max);
return dist(m_Engine);