random: Add a test case for DRBG_REINIT.
authorWerner Koch <wk@gnupg.org>
Fri, 19 Feb 2016 14:35:03 +0000 (15:35 +0100)
committerWerner Koch <wk@gnupg.org>
Fri, 19 Feb 2016 14:35:03 +0000 (15:35 +0100)
commit934ba2ae5a95a96fdbb3b935b51ba43df66f11df
treefbf9e6190ef0825e132eefaf26e3fe5bf2ad1c5b
parent7cdbd6e6a3cf1ee366b981e148d41b1187a6fdcf
random: Add a test case for DRBG_REINIT.

* src/global.c (_gcry_vcontrol) <DRBG_REINIT>: Test for FIPS RNG.
* tests/random.c (check_drbg_reinit): New.
(main): Call new test.

Signed-off-by: Werner Koch <wk@gnupg.org>
src/global.c
tests/random.c