summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/random.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2011-01-29 23:33:43 +0100
committerAdam Borowski <kilobyte@angband.pl>2011-01-30 00:18:22 +0100
commit43d942690a7a97d6174b78388a512ab8ba8d8cde (patch)
treec7bb52768a94e3a80f522d41b75552cb194dad81 /crawl-ref/source/random.h
parent14c0c7cb771bec4e9c6b596eba1e9e723efefefb (diff)
downloadcrawl-ref-43d942690a7a97d6174b78388a512ab8ba8d8cde.tar.gz
crawl-ref-43d942690a7a97d6174b78388a512ab8ba8d8cde.zip
Get rid of some more longs.
Diffstat (limited to 'crawl-ref/source/random.h')
-rw-r--r--crawl-ref/source/random.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/random.h b/crawl-ref/source/random.h
index c785ebcb00..eb889e59ea 100644
--- a/crawl-ref/source/random.h
+++ b/crawl-ref/source/random.h
@@ -42,7 +42,7 @@ void scale_dice(dice_def &dice, int threshold = 24);
class rng_save_excursion
{
public:
- rng_save_excursion(long seed) { push_rng_state(); seed_rng(seed); }
+ rng_save_excursion(uint32_t seed) { push_rng_state(); seed_rng(seed); }
rng_save_excursion() { push_rng_state(); }
~rng_save_excursion() { pop_rng_state(); }
};
@@ -71,7 +71,7 @@ public:
// nodes will get different results.
class defer_rand
{
- std::vector<unsigned long> bits;
+ std::vector<uint32_t> bits;
std::map<int, defer_rand> children;
bool x_chance_in_y_contd(int x, int y, int index);