Commit 4835a594 authored by yiwenshao's avatar yiwenshao

add constant useSalt

parent 84180ae8
...@@ -55,13 +55,18 @@ globalConstants initGlobalConstants(){ ...@@ -55,13 +55,18 @@ globalConstants initGlobalConstants(){
}else{ }else{
res.useDET = false; 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 if(head=="other") {
; ;
}else{ }else{
assert(0); assert(0);
} }
} }
/* the following values need not be determined /* the following values need not be determined
at runtime.*/ at runtime.*/
res.logFile="LOG.TXT"; res.logFile="LOG.TXT";
......
...@@ -17,6 +17,7 @@ struct globalConstants{ ...@@ -17,6 +17,7 @@ struct globalConstants{
bool useOPE; bool useOPE;
bool useSWP; bool useSWP;
bool useDET; bool useDET;
bool useSalt;
std::string logFile;/*file name for log*/ 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