summaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/common
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2020-04-25 22:51:49 +0200
committerTor Egge <Tor.Egge@broadpark.no>2020-04-25 22:58:30 +0200
commitd4bf2e41fab0adce629308de75b3e1763dfadccb (patch)
tree2d4ac70964ab3a16fc46c38d3c7510aec64d8c34 /searchlib/src/tests/common
parent35decca41db6b9a44b24b6f7501c84d159ebd6a7 (diff)
Reduce code duplication. Rand48 class is in vespalib.
Diffstat (limited to 'searchlib/src/tests/common')
-rw-r--r--searchlib/src/tests/common/bitvector/bitvector_test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/searchlib/src/tests/common/bitvector/bitvector_test.cpp b/searchlib/src/tests/common/bitvector/bitvector_test.cpp
index 409cc9f2725..db29ab9881f 100644
--- a/searchlib/src/tests/common/bitvector/bitvector_test.cpp
+++ b/searchlib/src/tests/common/bitvector/bitvector_test.cpp
@@ -8,7 +8,7 @@
#include <vespa/searchlib/common/bitvectoriterator.h>
#include <vespa/searchlib/fef/termfieldmatchdata.h>
#include <vespa/searchlib/fef/termfieldmatchdataarray.h>
-#include <vespa/searchlib/util/rand48.h>
+#include <vespa/vespalib/util/rand48.h>
#include <algorithm>
using namespace search;
@@ -81,7 +81,7 @@ myCountInterval(const BitVector &bv, uint32_t low, uint32_t high)
}
void
-scan(uint32_t count, uint32_t offset, uint32_t size, Rand48 &rnd)
+scan(uint32_t count, uint32_t offset, uint32_t size, vespalib::Rand48 &rnd)
{
std::vector<uint32_t> lids;
lids.reserve(count);
@@ -110,7 +110,7 @@ scan(uint32_t count, uint32_t offset, uint32_t size, Rand48 &rnd)
void
scanWithOffset(uint32_t offset)
{
- Rand48 rnd;
+ vespalib::Rand48 rnd;
rnd.srand48(32);
scan(10, offset, 1000000, rnd);