k-dot-p 0.1

randomness.h++

Go to the documentation of this file.
00001 /*
00002  *randomness.h++ platform-specific random number generator stuff.  Should mostly be used for seeding
00003     the GSL random number generator.
00004 
00005     Copyright (C) 2010 Joseph Pingenot
00006 
00007     This program is free software: you can redistribute it and/or modify
00008     it under the terms of the GNU Affero General Public License as published by
00009     the Free Software Foundation, either version 3 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 Affero General Public License for more details.
00016 
00017     You should have received a copy of the GNU Affero General Public License
00018     along with this program.  If not, see <http://www.gnu.org/licenses/>.
00019 
00020 */
00021 
00022 #ifndef ___LIBMODELXX_RANDOMNESS_HXX___
00023 #define ___LIBMODELXX_RANDOMNESS_HXX___
00024 
00025 
00026 namespace kdotp {
00027   namespace libmodelxx {
00028     namespace randomness {
00029 
00030 
00031       unsigned long int get_random_unsigned_long_int(GError **err);
00032       /**Will get from /dev/urandom if present.  Otherwise, is identical to random.*/
00033       unsigned long int get_urandom_unsigned_long_int(GError **err);
00034       
00035     }
00036   }
00037 }
00038 
00039 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines