random.h

Go to the documentation of this file.
00001 /**
00002  * @file random.h
00003  * @brief Pseudo-random number generation
00004  * 
00005  * Part of the CCNx C Library.
00006  *
00007  * Copyright (C) 2010 Palo Alto Research Center, Inc.
00008  *
00009  * This library is free software; you can redistribute it and/or modify it
00010  * under the terms of the GNU Lesser General Public License version 2.1
00011  * as published by the Free Software Foundation.
00012  * This library 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 GNU
00015  * Lesser General Public License for more details. You should have received
00016  * a copy of the GNU Lesser General Public License along with this library;
00017  * if not, write to the Free Software Foundation, Inc., 51 Franklin Street,
00018  * Fifth Floor, Boston, MA 02110-1301 USA.
00019  */
00020  
00021 #ifndef CCN_RANDOM_DEFINED
00022 #define CCN_RANDOM_DEFINED
00023 
00024 #include <stddef.h>
00025 
00026 void ccn_random_bytes(unsigned char *buf, size_t size);
00027 void ccn_add_entropy(const void *buf, size_t size, int bits_of_entropy);
00028 
00029 #endif
Generated on Fri May 13 16:27:02 2011 for Content-Centric Networking in C by  doxygen 1.6.3