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_int32() ((int32_t) random_int64()) 00032 00037 int64_t random_int64 (void); 00038 00044 void random_array (void *m, size_t l); 00045 00051 void random_hex (char *s, size_t l); 00052 00053 #endif 00054 00055 /* vim: set noexpandtab tabstop=4: */