star-sp

Random number generators and distributions
git clone git://git.meso-star.fr/star-sp.git
Log | Files | Refs | README | LICENSE

commit d45585825566b201f473ddfcd3671026bf46f1a4
parent 48a7e0dcf119f8f61c7d3a72cea4496b7ebde738
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Thu, 28 Sep 2017 11:37:59 +0200

Check some API call results.

Diffstat:
Msrc/test_ssp_rng.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/test_ssp_rng.c b/src/test_ssp_rng.c @@ -95,8 +95,8 @@ test_rng(const struct ssp_rng_type* type) CHECK(ssp_rng_set(NULL, 0), RES_BAD_ARG); CHECK(ssp_rng_set(rng, 0), can_set ? RES_OK : RES_BAD_OP); - ssp_rng_create(NULL, type, &rng1); - ssp_rng_create(NULL, type, &rng2); + CHECK(ssp_rng_create(NULL, type, &rng1), RES_OK); + CHECK(ssp_rng_create(NULL, type, &rng2), RES_OK); CHECK(ssp_rng_discard(rng1, 10), can_discard ? RES_OK : RES_BAD_OP); if (type != &ssp_rng_random_device) { for (i = 0; i < 10; i++) ssp_rng_get(rng2);