summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/asg.cc
Commit message (Collapse)AuthorAgeFilesLines
* Make a sign conversion explicit.Neil Moore2014-06-271-1/+1
|
* Assert that we don't use more RNGs than we have.Neil Moore2014-06-261-0/+2
|
* Drop unnecessary parentheses from return statements.Adam Borowski2013-11-151-1/+1
|
* random3(), with a different RNG state.Adam Borowski2013-10-061-5/+17
| | | | | | Works same as random2(). Also, stops valgrind from kvetching about unfreed asg state.
* Remove unused code for a RNG stack.Adam Borowski2013-10-061-21/+0
| | | | | Nothing uses it as a hash anymore; and if it did, you can have more than one RNG object at once.
* Typecast to signed when doing sign negation.Adam Borowski2013-05-151-1/+1
| | | | Hushes a MSVC warning.
* Use std namespace.Raphael Langella2012-08-261-1/+1
| | | | | | | | | | | | | I had to rename distance() (in coord.h) to distance2() because it conflicts with the STL function to compare 2 iterators. Not a bad change given how it returns the square of the distance anyway. I also had to rename the message global variable (in message.cc) to buffer. I tried to fix and improve the coding style has much as I could, but I probably missed a few given how huge and tedious it is. I also didn't touch crawl-gdb.py, and the stuff in prebuilt, rltiles/tool and util/levcomp.*, because I have no clue about those.
* Fixing a RNG errorBrendan Hickey2011-12-301-1/+1
|
* Consistently use a space after flow control statements.Adam Borowski2011-12-021-1/+1
|
* Adjust some whitespace and formatting.Adam Borowski2011-07-081-1/+3
|
* Fix a memory leak.Adam Borowski2011-05-251-0/+1
|
* Swapped MT19937 for a 160-bit hybrid alternating step generatorBrendan Hickey2011-04-081-0/+88