5 #ifndef _MONO_UTILS_RAND_H_
6 #define _MONO_UTILS_RAND_H_
10 #include "mono-compiler.h"
11 #include "mono-error.h"
14 mono_rand_open (void);
16 mono_rand_init (guchar
*seed
, gint seed_size
);
18 mono_rand_try_get_bytes (gpointer
*handle
, guchar
*buffer
, gint buffer_size
, MonoError
*error
);
20 mono_rand_try_get_uint32 (gpointer
*handle
, guint32
*val
, guint32 min
, guint32 max
, MonoError
*error
);
22 mono_rand_close (gpointer handle
);
24 #endif /* _MONO_UTILS_RAND_H_ */