X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/fbdfd34ebce82921ead337127da7c9c480a1e29d..c65df27983057ec76ed0e72bb370f9a5ae7dad28:/bbs-rand.c diff --git a/bbs-rand.c b/bbs-rand.c index dbca23c..3d2563a 100644 --- a/bbs-rand.c +++ b/bbs-rand.c @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: bbs-rand.c,v 1.3 2000/06/17 10:45:21 mdw Exp $ + * $Id: bbs-rand.c,v 1.5 2004/04/08 01:36:15 mdw Exp $ * * Blum-Blum-Shub secure random number generator * @@ -27,21 +27,6 @@ * MA 02111-1307, USA. */ -/*----- Revision history --------------------------------------------------* - * - * $Log: bbs-rand.c,v $ - * Revision 1.3 2000/06/17 10:45:21 mdw - * Typesetting fixes. Advertise random number generator strength. Use - * secure arena for memory allocation. - * - * Revision 1.2 1999/12/13 15:34:01 mdw - * Add support for seeding from a generic pseudorandom source. - * - * Revision 1.1 1999/12/10 23:14:59 mdw - * Blum-Blum-Shub generator, and Blum-Goldwasser encryption. - * - */ - /*----- Header files ------------------------------------------------------*/ #include @@ -134,8 +119,7 @@ void bbs_step(bbs *b) void bbs_set(bbs *b, mp *x) { - if (b->x) - mp_drop(b->x); + mp_drop(b->x); b->x = MP_COPY(x); bbs_step(b); }