* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
-#if !defined( __LIBVLC__ )
- #error You are not libvlc or one of its plugins. You cannot include this file
-#endif
+#ifndef VLC_RAND_H
+# define VLC_RAND_H
+
+/**
+ * \file
+ * This file defined random number generator function in vlc
+ */
-#ifndef _VLC_RAND_H
-# define _VLC_RAND_H
+VLC_API void vlc_rand_bytes(void *buf, size_t len);
-VLC_EXPORT( void, vlc_rand_bytes, (void *buf, size_t len) );
+/* Interlocked (but not reproducible) functions for the POSIX PRNG */
+VLC_API double vlc_drand48(void) VLC_USED;
+VLC_API long vlc_lrand48(void) VLC_USED;
+VLC_API long vlc_mrand48(void) VLC_USED;
#endif