Skip to content

Commit

Permalink
set random seed
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuhui ZHI authored and Yuhui ZHI committed Nov 20, 2016
1 parent f328551 commit d064d25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Generator::Generator()
// nothing to do
}

Generator::Generator(int lines, float r) : e{}, bdStrOrEmpty(r), uiCode(0, codeLib.size() - 1), uiLenString(lines / 9, lines * 3 / 4), uiLenEmpty(lines / 2, lines * 3 / 2)
Generator::Generator(int lines, float r) : e(time(0)), bdStrOrEmpty(r), uiCode(0, codeLib.size() - 1), uiLenString(lines / 9, lines * 3 / 4), uiLenEmpty(lines / 2, lines * 3 / 2)
{
// nothing to do
}
Expand Down

0 comments on commit d064d25

Please sign in to comment.