Skip to content

Commit

Permalink
ensuring the original invariant array is copied and can not be modified
Browse files Browse the repository at this point in the history
Signed-off-by: Egon Willighagen <egonw@users.sourceforge.net>
  • Loading branch information
johnmay authored and egonw committed Apr 19, 2013
1 parent 38cbfe1 commit bfb4719
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -166,7 +166,7 @@ private long[] generate(IAtomContainer container, long[] seeds,
encoder.reset();

// compute new hash codes and copy the values a column in the matrix
long[] tmp = basic.generate(original, encoder, graph);
long[] tmp = basic.generate(copy(original), encoder, graph);
for (int j = 0; j < n; j++) {
perturbed[j][i + 1] = tmp[j];
}
Expand Down

0 comments on commit bfb4719

Please sign in to comment.