random.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2014- The University of Notre Dame
00003  * This software is distributed under the GNU General Public License.
00004  * See the file COPYING for details.
00005  */
00006 
00007 #ifndef RANDOM_H
00008 #define RANDOM_H
00009 
00010 #include <stdint.h>
00011 #include <stdlib.h>
00012 
00020 void    random_init (void);
00021 
00026 #define random_int()   ((int) random_int64())
00027 
00032 #define random_uint()   ((unsigned) random_int64())
00033 
00038 #define random_int32() ((int32_t) random_int64())
00039 
00044 int64_t random_int64 (void);
00045 
00051 void    random_array (void *m, size_t l);
00052 
00058 void    random_hex   (char *s, size_t l);
00059 
00060 #endif
00061 
00062 /* vim: set noexpandtab tabstop=4: */

Generated on 17 Sep 2019 for cctools by  doxygen 1.6.1