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 
00019 void    random_init (void);
00020 
00025 #define random_int()   ((int) random_int64())
00026 
00031 #define random_uint()   ((unsigned) random_int64())
00032 
00037 #define random_int32() ((int32_t) random_int64())
00038 
00043 int64_t random_int64 (void);
00044 
00050 void    random_array (void *m, size_t l);
00051 
00057 void    random_hex   (char *s, size_t l);
00058 
00059 #endif
00060 
00061 /* vim: set noexpandtab tabstop=4: */

Generated on 16 Feb 2016 for cctools by  doxygen 1.6.1