aboutsummaryrefslogtreecommitdiff
path: root/src/test/util_tests.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Internal RNG for approximateBestSubset to prevent degenerate behavior.Gregory Maxwell2013-02-181-0/+62
| | | | | | | | | | | | | | | This fixes test_bitcoin failures on openbsd reported by dhill on IRC. On some systems rand() is a simple LCG over 2^31 and so it produces an even-odd sequence. ApproximateBestSubset was only using the least significant bit and so every run of the iterative solver would be the same for some inputs, resulting in some pretty dumb decisions. Using something other than the least significant bit would paper over the issue but who knows what other way a system's rand() might get us here. Instead we use an internal RNG with a period of something like 2^60 which is well behaved. This also makes it possible to make the selection deterministic for the tests, if we wanted to implement that.
* test/util_tests.cpp: one more DateTimeStrFormat 'T' removalJeff Garzik2013-01-011-4/+4
|
* Change timestamps to use ISO8601 formattingRichard Schwab2012-12-121-4/+4
|
* Remove useless non-cross-platform tests.Matt Corallo2012-08-171-0/+2
|
* change strings to Bitcoin (uppercase), where it is used as a noun and update ↵Philip Kaufmann2012-05-181-1/+1
| | | | strings to use "Qt" (and not qt or QT) / update initialisation of notificator to use qApp->applicationName() instead of a static string
* Integrate @JoelKatz's optimized ToHex (#562) into current HexStr functionWladimir J. van der Laan2012-04-211-0/+11
|
* Use scoped locks instead of CRITICAL_BLOCKPieter Wuille2012-04-091-3/+4
|
* Replace OP_EVAL (BIP 12) with Pay-to-script-hash (BIP 16).Gavin Andresen2012-01-131-0/+15
|
* Revert "Use standard C99 (and Qt) types for 64-bit integers"Wladimir J. van der Laan2011-12-211-3/+1
| | | | This reverts commit 21d9f36781604e4ca9fc35dc65265593423b73e9.
* Use standard C99 (and Qt) types for 64-bit integersLuke Dashjr2011-12-201-1/+3
|
* Rework unit tests so test_bitcoin.cpp does not #include them allGavin Andresen2011-12-191-1/+3
|
* Added simple critical section test cases.Clark Gaebel2011-11-021-0/+19
|
* Declare integer constant LLGavin Andresen2011-10-031-1/+1
|
* remove possibility of 63 bit overflow in ParseMoneyWladimir J. van der Laan2011-10-011-7/+185
| | | | - also, add unit tests for various functions in util.cpp/util.h
* use median filter for peer-reported reported number of blocksWladimir J. van der Laan2011-09-281-0/+36
- fixes problem that one misconfigured or malicious node can mess up progress bar - implementation in src/util.h - testcase in src/test/util_tests.cpp