Commit 4835a594 authored by yiwenshao's avatar yiwenshao

add constant useSalt

parent 84180ae8
......@@ -55,13 +55,18 @@ globalConstants initGlobalConstants(){
}else{
res.useDET = false;
}
}else if(head=="useSalt"){
if(line.substr(index+1)=="true"){
res.useSalt = true;
}else{
res.useSalt = false;
}
}else if(head=="other") {
;
}else{
assert(0);
}
}
/* the following values need not be determined
at runtime.*/
res.logFile="LOG.TXT";
......
......@@ -17,6 +17,7 @@ struct globalConstants{
bool useOPE;
bool useSWP;
bool useDET;
bool useSalt;
std::string logFile;/*file name for log*/
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment