Home | History | Annotate | Line # | Download | only in rand
rands.c revision 1.1
      1  1.1  mrg /* __gmp_rands -- global random state for old-style random functions.
      2  1.1  mrg 
      3  1.1  mrg    EVERYTHING IN THIS FILE IS FOR INTERNAL USE ONLY.  IT'S ALMOST CERTAIN TO
      4  1.1  mrg    BE SUBJECT TO INCOMPATIBLE CHANGES OR DISAPPEAR COMPLETELY IN FUTURE GNU
      5  1.1  mrg    MP RELEASES.  */
      6  1.1  mrg 
      7  1.1  mrg /*
      8  1.1  mrg Copyright 2001 Free Software Foundation, Inc.
      9  1.1  mrg 
     10  1.1  mrg This file is part of the GNU MP Library.
     11  1.1  mrg 
     12  1.1  mrg The GNU MP Library is free software; you can redistribute it and/or modify
     13  1.1  mrg it under the terms of the GNU Lesser General Public License as published by
     14  1.1  mrg the Free Software Foundation; either version 3 of the License, or (at your
     15  1.1  mrg option) any later version.
     16  1.1  mrg 
     17  1.1  mrg The GNU MP Library is distributed in the hope that it will be useful, but
     18  1.1  mrg WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
     19  1.1  mrg or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
     20  1.1  mrg License for more details.
     21  1.1  mrg 
     22  1.1  mrg You should have received a copy of the GNU Lesser General Public License
     23  1.1  mrg along with the GNU MP Library.  If not, see http://www.gnu.org/licenses/.  */
     24  1.1  mrg 
     25  1.1  mrg #include "gmp.h"
     26  1.1  mrg #include "gmp-impl.h"
     27  1.1  mrg 
     28  1.1  mrg 
     29  1.1  mrg /* Use this via the RANDS macro in gmp-impl.h */
     30  1.1  mrg char             __gmp_rands_initialized = 0;
     31  1.1  mrg gmp_randstate_t  __gmp_rands;
     32