diff options
author | Maxim Pimenov <m@maps.me> | 2015-07-15 21:19:37 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:56:13 +0300 |
commit | eaa56751946aff0514bfa12101dc87b0bc4441a4 (patch) | |
tree | add66a6bee58e8e9469ed54944a24e36aa039555 /indexer | |
parent | 21cad7ee4693c97b0fed3dc1c46a2102faf5f94c (diff) |
[omim] Remove base/pseudo_random.hpp and add std/random.hpp instead.
Diffstat (limited to 'indexer')
-rw-r--r-- | indexer/indexer_tests/cell_id_test.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/indexer/indexer_tests/cell_id_test.cpp b/indexer/indexer_tests/cell_id_test.cpp index e3e37d2dfb..10f0a29100 100644 --- a/indexer/indexer_tests/cell_id_test.cpp +++ b/indexer/indexer_tests/cell_id_test.cpp @@ -1,10 +1,13 @@ -#include "indexer/cell_id.hpp" #include "testing/testing.hpp" + +#include "indexer/cell_id.hpp" + #include "coding/hex.hpp" -#include "base/pseudo_random.hpp" + #include "std/cmath.hpp" +#include "std/random.hpp" #include "std/string.hpp" -#include "std/cmath.hpp" + typedef m2::CellId<30> CellIdT; @@ -39,11 +42,11 @@ namespace UNIT_TEST(CellId_RandomRecode) { - PseudoRNG32 rng; + mt19937 rng(0); for (size_t i = 0; i < 1000; ++i) { - uint32_t const x = rng.Generate() % 2000; - uint32_t const y = rng.Generate() % 1000; + uint32_t const x = rng() % 2000; + uint32_t const y = rng() % 1000; m2::PointD const pt = CellIdConverter<Bounds<0, 0, 2000, 1000>, CellIdT>::FromCellId( CellIdConverter<Bounds<0, 0, 2000, 1000>, CellIdT>::ToCellId(x, y)); |