X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/898a4e2555438ff8adb08b4d82690d08715e1048..b817bfc642225b8c3c0b6a7e42d1fb949b61a606:/mprand.c diff --git a/mprand.c b/mprand.c index 46e603c..0baae4f 100644 --- a/mprand.c +++ b/mprand.c @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: mprand.c,v 1.4 2001/05/07 17:31:19 mdw Exp $ + * $Id: mprand.c,v 1.5 2004/04/08 01:36:15 mdw Exp $ * * Generate a random multiprecision integer * @@ -27,27 +27,6 @@ * MA 02111-1307, USA. */ -/*----- Revision history --------------------------------------------------* - * - * $Log: mprand.c,v $ - * Revision 1.4 2001/05/07 17:31:19 mdw - * Fix off-by one bug in mprand_range. Probably security critical: the old - * code generated numbers between zero and the highest power of 2 less than - * the given range. - * - * Revision 1.3 2000/06/17 11:45:09 mdw - * Major memory management overhaul. Added arena support. Use the secure - * arena for secret integers. Replace and improve the MP management macros - * (e.g., replace MP_MODIFY by MP_DEST). - * - * Revision 1.2 1999/12/22 15:55:33 mdw - * Modify `mprand' slightly. Add `mprand_range'. - * - * Revision 1.1 1999/12/10 23:23:05 mdw - * Support for generating random large integers. - * - */ - /*----- Header files ------------------------------------------------------*/ #include