00001 /***************************************************************************** 00002 * vlc_rand.h: RNG 00003 ***************************************************************************** 00004 * Copyright © 2007 Rémi Denis-Courmont 00005 * $Id: 3ae95ac04c55f46d116481eb89255b013f6d1c32 $ 00006 * 00007 * This program is free software; you can redistribute it and/or modify it 00008 * under the terms of the GNU Lesser General Public License as published by 00009 * the Free Software Foundation; either version 2.1 of the License, or 00010 * (at your option) any later version. 00011 * 00012 * This program is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU Lesser General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public License 00018 * along with this program; if not, write to the Free Software Foundation, 00019 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. 00020 *****************************************************************************/ 00021 00022 #ifndef VLC_RAND_H 00023 # define VLC_RAND_H 00024 00025 /** 00026 * \file 00027 * This file defined random number generator function in vlc 00028 */ 00029 00030 VLC_API void vlc_rand_bytes(void *buf, size_t len); 00031 00032 /* Interlocked (but not reproducible) functions for the POSIX PRNG */ 00033 VLC_API double vlc_drand48(void) VLC_USED; 00034 VLC_API long vlc_lrand48(void) VLC_USED; 00035 VLC_API long vlc_mrand48(void) VLC_USED; 00036 00037 #endif
1.7.1