"Fossies" - the Fresh Open Source Software Archive

Member "littleutils-1.2.5/littleutils/rand_funcs.h" (29 Oct 2021, 999 Bytes) of package /linux/privat/littleutils-1.2.5.tar.lz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "rand_funcs.h" see the Fossies "Dox" file reference documentation.

    1 /* rand_funcs.h:  General purpose random number functions.
    2 
    3    Copyright (C) 2021 by Brian Lindholm.
    4    This file is part of the littleutils utility set.
    5 
    6    The rand_funcs.h file is free software; you can redistribute it and/or
    7    modify it under the terms of the GNU General Public License as published by
    8    the Free Software Foundation; either version 3, or (at your option) any
    9    later version.
   10 
   11    The randomize utility is distributed in the hope that it will be useful, but
   12    WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
   13    or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
   14    more details.
   15 
   16    You should have received a copy of the GNU General Public License along with
   17    the littleutils.  If not, see <https://www.gnu.org/licenses/>. */
   18 
   19 #ifndef _RAND_FUNCS_H
   20 #define _RAND_FUNCS_H 1
   21 
   22 #include <stddef.h>
   23 #ifdef HAVE_STDDEF_H
   24 # include <stddef.h>
   25 #endif
   26 
   27 void rand_seed ();
   28 size_t rand_int (size_t n);
   29 
   30 #endif /* rand_funcs.h */