diff options
author | Kevin Ryde <user42@zip.com.au> | 2001-07-10 01:16:09 +0200 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2001-07-10 01:16:09 +0200 |
commit | f6dbfe01077e1bcf9feea0b01d868c7055fc38d0 (patch) | |
tree | b4de1791a17af22c8cdc8193706e7eeedb079822 /randraw.c | |
parent | 9abbe78cba46ac7adc58cd53f7d438cf2eeb4a0e (diff) | |
download | gmp-f6dbfe01077e1bcf9feea0b01d868c7055fc38d0.tar.gz |
* randclr.c, randraw.c: Use ASSERT(0) for unrecognised algorithms.
Only gmp_randinit needs to check for an invalid algorithm choice,
after that rstate->_mp_alg should be valid and an ASSERT of that
suffices.
Diffstat (limited to 'randraw.c')
-rw-r--r-- | randraw.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -341,7 +341,7 @@ _gmp_rand (mp_ptr rp, gmp_randstate_t rstate, unsigned long int nbits) } default: - gmp_errno |= GMP_ERROR_UNSUPPORTED_ARGUMENT; + ASSERT (0); break; } } |