]> git.sesse.net Git - vlc/blobdiff - include/vlc_rand.h
Kate: unused arguments
[vlc] / include / vlc_rand.h
index 8a5232f9162287de1be5e2f787c114d50f2fd9cd..4c738a0b61ca9dba51a90c749007267ee5a62370 100644 (file)
  * 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