summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/random.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-12-01 02:13:15 +0100
committerAdam Borowski <kilobyte@angband.pl>2013-12-01 02:20:36 +0100
commita2412da067bef818e685f66b220afc325069f6c0 (patch)
tree7fe08681f52156bfe2f536bf3b1f1c16c3c7dd09 /crawl-ref/source/random.cc
parent9eb20e42e6b6d52b230228ecb28eb20811250be9 (diff)
downloadcrawl-ref-a2412da067bef818e685f66b220afc325069f6c0.tar.gz
crawl-ref-a2412da067bef818e685f66b220afc325069f6c0.zip
Fix ui_random() using the main random generator.
Diffstat (limited to 'crawl-ref/source/random.cc')
-rw-r--r--crawl-ref/source/random.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/random.cc b/crawl-ref/source/random.cc
index 9df0324094..207e7753ac 100644
--- a/crawl-ref/source/random.cc
+++ b/crawl-ref/source/random.cc
@@ -143,7 +143,7 @@ int ui_random(int max)
while (true)
{
- uint32_t bits = get_uint32();
+ uint32_t bits = get_uint32(1);
uint32_t val = bits / partn;
if (val < (uint32_t)max)