Do not use /dev/urandom in the tests
authorColomban Wendling <ban@herbesfolles.org>
Mon, 4 May 2015 14:12:13 +0000 (16:12 +0200)
committerColomban Wendling <ban@herbesfolles.org>
Mon, 4 May 2015 14:12:13 +0000 (16:12 +0200)
commit60d0381384ad1559c209d994f9d5900edebf018a
tree7f22dbcf61d6571b082ac2b9004c9e6b70c283e8
parent1969492dc406b23dfda6fec667d614b129b045bc
Do not use /dev/urandom in the tests

We do not need any quality guarantee on the random input data for the
tests, so we should not be reducing host system's entropy for it.

So, instead of reading /dev/urandom, just ask GLib for pseudo-random
bytes which are more than good enough.
tests/main.c