• Main Page
  • Classes
  • Files
  • File List

Swiften/Base/BoostRandomGenerator.h

00001 /*
00002  * Copyright (c) 2012 Remko Tronçon
00003  * Licensed under the GNU General Public License v3.
00004  * See Documentation/Licenses/GPLv3.txt for more information.
00005  */
00006 
00007 #pragma once
00008 
00009 #include <Swiften/Base/RandomGenerator.h>
00010 #include <Swiften/Base/Override.h>
00011 
00012 #include <boost/random/mersenne_twister.hpp>
00013 
00014 namespace Swift {
00015   class BoostRandomGenerator : public RandomGenerator{
00016     public:
00017       BoostRandomGenerator();
00018 
00019       int generateRandomInteger(int max) SWIFTEN_OVERRIDE;
00020 
00021     private:
00022       boost::mt19937 generator;
00023   };
00024 }

Generated on Sun Dec 23 2012 16:42:40 for Swiften by  doxygen 1.7.1