]> git.sesse.net Git - vlc/blobdiff - include/vlc_rand.h
Use var_Inherit* instead of var_CreateGet*.
[vlc] / include / vlc_rand.h
index 4225316cb1d4d3335d278103e844bffce84db4a4..0023d7cdaf6869e0de68a1e6412906d08a21f8f4 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
-#ifndef _VLC_RAND_H
-# define _VLC_RAND_H
+#ifndef VLC_RAND_H
+# define VLC_RAND_H
+
+/**
+ * \file
+ * This file defined random number generator function in vlc
+ */
 
 VLC_EXPORT( void, vlc_rand_bytes, (void *buf, size_t len) );
 
+/* Interlocked (but not reproducible) functions for the POSIX PRNG */
+VLC_EXPORT( double, vlc_drand48, (void) LIBVLC_USED );
+VLC_EXPORT( long, vlc_lrand48, (void) LIBVLC_USED );
+VLC_EXPORT( long, vlc_mrand48, (void) LIBVLC_USED );
+
 #endif