diff options
author | Bardur Arantsson <bardur@scientician.net> | 2016-09-17 09:58:14 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2016-09-17 09:58:14 +0200 |
commit | 6d11bb4a2d5bc8ab7c1491639f1083532b1b8fd1 (patch) | |
tree | 0a1ee125b7c5ef7ec37ff0781392989be4f75e26 /src/town_type.hpp | |
parent | 36969a9058806e71078efcb04a91cc263612d42e (diff) |
Replace RNG with PCG random number generator
Diffstat (limited to 'src/town_type.hpp')
-rw-r--r-- | src/town_type.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/town_type.hpp b/src/town_type.hpp index e119968b..0b903138 100644 --- a/src/town_type.hpp +++ b/src/town_type.hpp @@ -1,6 +1,7 @@ #pragma once #include "h-basic.h" +#include "seed.hpp" #include "store_type_fwd.hpp" #include <vector> @@ -12,7 +13,7 @@ struct town_type { cptr name = nullptr; - u32b seed = 0; /* Seed for RNG */ + seed_t seed = seed_t::system(); /* Seed for RNG */ std::vector<store_type> store; /* The stores [max_st_idx] */ |