X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/07871354bfa8bbbacb6c6a1966f25b596119c146..5278d9afdf1aff9fd6f64073ea42395d756ee58c:/fibrand.h diff --git a/fibrand.h b/fibrand.h index 27c39f3..14d2aec 100644 --- a/fibrand.h +++ b/fibrand.h @@ -1,13 +1,13 @@ /* -*-c-*- * - * $Id: fibrand.h,v 1.1 1999/12/10 23:15:27 mdw Exp $ + * $Id: fibrand.h,v 1.3 2004/04/08 01:36:15 mdw Exp $ * * Fibonacci generator * * (c) 1999 Straylight/Edgeware */ -/*----- Licensing notice --------------------------------------------------* +/*----- Licensing notice --------------------------------------------------* * * This file is part of Catacomb. * @@ -15,26 +15,18 @@ * it under the terms of the GNU Library General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. - * + * * Catacomb is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Library General Public License for more details. - * + * * You should have received a copy of the GNU Library General Public * License along with Catacomb; if not, write to the Free * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, * MA 02111-1307, USA. */ -/*----- Revision history --------------------------------------------------* - * - * $Log: fibrand.h,v $ - * Revision 1.1 1999/12/10 23:15:27 mdw - * Noncryptographic random number generator. - * - */ - /*----- Notes on the Fibonacci generator ----------------------------------* * * The generator was originally suggested by G. J. Mitchell and D. P. Moore @@ -81,7 +73,7 @@ typedef struct fibrand { * Returns: Next output from generator. * * Use: Steps the generator. Returns - * %$x_{i - 24} + x_{i - 55} \bmod 2^{32}%$. + * %$x_{i - 24} + x_{i - 55} \bmod 2^{32}$%. */ extern uint32 fibrand_step(fibrand */*f*/);