summaryrefslogtreecommitdiff
path: root/tools/fileDataProvider.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/fileDataProvider.cpp')
-rw-r--r--tools/fileDataProvider.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/fileDataProvider.cpp b/tools/fileDataProvider.cpp
index b1f3f5e..9be1132 100644
--- a/tools/fileDataProvider.cpp
+++ b/tools/fileDataProvider.cpp
@@ -124,7 +124,7 @@ int RidFileDP::getpSize() {
return p.size();
};
-void scrambler(vector<DataEntry*> &dat)
+void RidFileDP::shuffle(vector<DataEntry*> &dat)
{
DataEntry* e;
int sz=(int)dat.size();
@@ -148,7 +148,7 @@ void RidFileDP::take(int n,vector<DataEntry*> &a,vector<DataEntry*> &b)
a.clear();
b.clear();
std::vector<DataEntry*> &dat = d.getData();
- scrambler(tmp);
+ shuffle(tmp);
for (int i=0;i<dat.size();++i)
tmp.push_back(dat[i]);
int pos = 0;
@@ -170,8 +170,8 @@ void RidFileDP::take(int n,vector<DataEntry*> &a,vector<DataEntry*> &b)
for (int i=0;i<tmp.size();++i)
if (tmp[i]!=NULL)
b.push_back(tmp[i]);
- scrambler(a);
- scrambler(b);
+ shuffle(a);
+ shuffle(b);
}
void RidFileDP::getAllDataSet(RidList &out){