X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc_rand.h;h=0023d7cdaf6869e0de68a1e6412906d08a21f8f4;hb=c12acbd7d48431d7b5029d765e69e87378aca7a2;hp=8a5232f9162287de1be5e2f787c114d50f2fd9cd;hpb=63ea63eb19692b20fe489f25c237c121d36fe932;p=vlc diff --git a/include/vlc_rand.h b/include/vlc_rand.h index 8a5232f916..0023d7cdaf 100644 --- a/include/vlc_rand.h +++ b/include/vlc_rand.h @@ -19,13 +19,19 @@ * 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 -#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