diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-10-06 17:16:52 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-10-06 17:18:39 +0200 |
commit | ba44991f064c3db2626e787dc95d0719877c89b0 (patch) | |
tree | 1d3aefaa14238ddbe0d4294e848b740af68607f0 /crawl-ref/source/asg.h | |
parent | c47ee9af642d5ad698871c7ce31e5ffae6a51d98 (diff) | |
download | crawl-ref-ba44991f064c3db2626e787dc95d0719877c89b0.tar.gz crawl-ref-ba44991f064c3db2626e787dc95d0719877c89b0.zip |
random3(), with a different RNG state.
Works same as random2().
Also, stops valgrind from kvetching about unfreed asg state.
Diffstat (limited to 'crawl-ref/source/asg.h')
-rw-r--r-- | crawl-ref/source/asg.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/asg.h b/crawl-ref/source/asg.h index 2224bf6f28..b4706beafc 100644 --- a/crawl-ref/source/asg.h +++ b/crawl-ref/source/asg.h @@ -12,6 +12,6 @@ class AsgKISS uint32_t m_lcg, m_mwcm, m_mwcc, m_xorshift, m_lfsr; }; -uint32_t get_uint32(); +uint32_t get_uint32(int generator = 0); void seed_asg(uint32_t[], int); #endif |