diff options
author | Remko Tronçon <git@el-tramo.be> | 2012-04-23 16:11:21 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2012-04-23 16:11:21 (GMT) |
commit | 7bd058600b682781abb3fd93bfaf516e7d8d7b23 (patch) | |
tree | 56ee7619b3785ff09a15ffdb54ac6427cd052dbf /Swiften/Base/BoostRandomGenerator.h | |
parent | 00981790bc39e9a0674feec19ffa792329bb077c (diff) | |
download | swift-contrib-7bd058600b682781abb3fd93bfaf516e7d8d7b23.zip swift-contrib-7bd058600b682781abb3fd93bfaf516e7d8d7b23.tar.bz2 |
Another fix for SRV selection.
Diffstat (limited to 'Swiften/Base/BoostRandomGenerator.h')
-rw-r--r-- | Swiften/Base/BoostRandomGenerator.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/Base/BoostRandomGenerator.h b/Swiften/Base/BoostRandomGenerator.h index ffc7a72..6d65b0b 100644 --- a/Swiften/Base/BoostRandomGenerator.h +++ b/Swiften/Base/BoostRandomGenerator.h @@ -13,7 +13,7 @@ namespace Swift { class BoostRandomGenerator : public RandomGenerator{ public: - int generateWeighedRandomNumber(std::vector<double>::const_iterator probabilities_begin, std::vector<double>::const_iterator probabilities_end); + int generateRandomInteger(int max); private: boost::mt19937 generator; |