diff --git a/hasher.cpp b/hasher.cpp index 04f5451..234c42d 100644 --- a/hasher.cpp +++ b/hasher.cpp @@ -16,6 +16,7 @@ int main() { std::string name; uint32_t uintname = 0; + int64_t brokenSuidContainer = 0; char brokenSuid[50]; std::cout << "What is your username? "; @@ -35,6 +36,9 @@ int main() { // the below is a result of sprintf formatting with the hashing above sprintf(brokenSuid, "%i", uintname); - std::cout << "Username [" << name << "] StationID [proper: " << uintname << " broken: " << brokenSuid << "]\n"; + // get the above into an int field, partly to eximplify should we want to add this to the login code + brokenSuidContainer = std::stoi(brokenSuid); + + std::cout << "Username [" << name << "] StationID [proper: " << uintname << " broken: " << brokenSuidContainer << "]\n"; }