Commit Graph

3 Commits

Author SHA1 Message Date
Mikkel Krautz
15609703e4 src/tests: make all test .pro files 'inherit' from common test.pri file.
This refactors a lot of the common code from each test file into
a test.pri file, which is then included by all of our tests.
2017-03-02 02:28:19 +01:00
Mikkel Krautz
fc878e04bf TestCryptographicRandom: add QT_NO_OPENGL to fix 'make check' for win32-msvc builds. 2017-03-02 00:31:28 +01:00
Mikkel Krautz
aa25435a7b CryptographicRandom: new class for acquiring random data for cryptographic purposes.
The class implements an API similar to OpenBSD's arc4random:

 - A way to get a random uint32_t. (arc4random)
 - A way to get a random uint32_t with an upper bound. (arc4random_uniform)
 - A way to fill a buffer with random data. (arc4random_buf)
2017-03-01 23:29:07 +01:00