summaryrefslogtreecommitdiffstats
path: root/src/FastRandom.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2015-03-14 01:59:53 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2015-03-14 01:59:53 +0100
commite94886c14068eb3b9f70e4ec4ae02b7f832b8fdc (patch)
treeacbad702bb021448d18274e2f981587fdd918927 /src/FastRandom.cpp
parentMerge pull request #1809 from flx5/master (diff)
downloadcuberite-e94886c14068eb3b9f70e4ec4ae02b7f832b8fdc.tar
cuberite-e94886c14068eb3b9f70e4ec4ae02b7f832b8fdc.tar.gz
cuberite-e94886c14068eb3b9f70e4ec4ae02b7f832b8fdc.tar.bz2
cuberite-e94886c14068eb3b9f70e4ec4ae02b7f832b8fdc.tar.lz
cuberite-e94886c14068eb3b9f70e4ec4ae02b7f832b8fdc.tar.xz
cuberite-e94886c14068eb3b9f70e4ec4ae02b7f832b8fdc.tar.zst
cuberite-e94886c14068eb3b9f70e4ec4ae02b7f832b8fdc.zip
Diffstat (limited to '')
-rw-r--r--src/FastRandom.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/FastRandom.cpp b/src/FastRandom.cpp
index 515dc25ea..ad1390a92 100644
--- a/src/FastRandom.cpp
+++ b/src/FastRandom.cpp
@@ -105,18 +105,6 @@ int cFastRandom::NextInt(int a_Range)
-int cFastRandom::NextInt(int a_Range, int a_Salt)
-{
- m_LinearRand.seed(a_Salt);
- std::uniform_int_distribution<> distribution(0, a_Range - 1);
- return distribution(m_LinearRand);
-}
-
-
-
-
-
-
float cFastRandom::NextFloat(float a_Range)
{
std::uniform_real_distribution<float> distribution(0, a_Range);
@@ -128,18 +116,6 @@ float cFastRandom::NextFloat(float a_Range)
-float cFastRandom::NextFloat(float a_Range, int a_Salt)
-{
- m_LinearRand.seed(a_Salt);
- std::uniform_real_distribution<float> distribution(0, a_Range);
- return distribution(m_LinearRand);
-}
-
-
-
-
-
-
int cFastRandom::GenerateRandomInteger(int a_Begin, int a_End)
{
std::uniform_int_distribution<> distribution(a_Begin, a_End);