# HG changeset patch # User Paper <37962225+mrpapersonic@users.noreply.github.com> # Date 1625035258 14400 # Node ID 3487aa65ca5626a3167fbb9e6cfd49b0f4dff0f3 # Parent 1c81c5106b596fb35d0cc0be9a220e138acd9ac4 Update win95kg.cpp committer: GitHub diff -r 1c81c5106b59 -r 3487aa65ca56 win95kg.cpp --- a/win95kg.cpp Wed Jun 30 02:40:02 2021 -0400 +++ b/win95kg.cpp Wed Jun 30 02:40:58 2021 -0400 @@ -98,7 +98,7 @@ int e() { int first_digits; int last_digit; - int second_segment = 5; + int second_segment; int sum = 1; while (sum % 7 != 0) { sum = 0; @@ -108,10 +108,9 @@ last_digit = rand() % 10; } std::string second_segment_p1 = (std::to_string(first_digits) + std::to_string(last_digit)); - second_segment = std::stoi(second_segment_p1); for(char &c :second_segment_p1) { sum += c - '0'; } } - return second_segment; + return std::stoi(second_segment_p1); }