Skip to content

Commit e941b11

Browse files
committed
Fix uninitiated base in Pollard's rho
1 parent 3bbb26b commit e941b11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cp-algo/number_theory/factorize.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace cp_algo::math {
1212
auto f = [&](auto x) {
1313
return x * x + t;
1414
};
15-
base x, y;
15+
base x = 0, y = 0;
1616
base g = 1;
1717
while(g == 1) {
1818
for(int i = 0; i < 64; i++) {

0 commit comments

Comments
 (0)