{"schemaVersion":1,"kind":"project","documentationUrl":"https://decomphub.com/data","project":{"id":"8ea183e4-af18-454e-a72f-886749ad0168","slug":"poc-exploit-prediciting-cpp-srand-and-rand","revision":2,"name":"Poc-Exploit-Prediciting-CPP-srand-and-rand","description":"This repository demonstrates how the C++ rand() function is predictable when seeded with srand(time(nullptr)). Using the Linear Congruential Generator (LCG), an attacker can reverse-engineer and predict future random numbers, leading to serious security risks.","url":"https://app.decomphub.com/projects/poc-exploit-prediciting-cpp-srand-and-rand","jsonUrl":"https://app.decomphub.com/data/projects/poc-exploit-prediciting-cpp-srand-and-rand.json","markdownUrl":"https://app.decomphub.com/data/projects/poc-exploit-prediciting-cpp-srand-and-rand.md","category":"applications","workTypes":["reverse-engineering"],"targets":["C++ rand()"],"status":"unknown","publishedAt":"2026-10-09T01:48:26.101Z","updatedAt":"2026-10-09T01:48:26.099Z","repository":{"url":"https://github.com/hotwrist/poc-exploit-prediciting-cpp-srand-and-rand","host":"github.com","fullPath":"hotwrist/poc-exploit-prediciting-cpp-srand-and-rand","description":"This repository demonstrates how the C++ rand() function is predictable when seeded with srand(time(nullptr)). Using the Linear Congruential Generator (LCG), an attacker can reverse-engineer and predict future random numbers, leading to serious security risks.","license":null,"starCount":0,"starsCheckedAt":"2026-10-09T01:35:29.205Z","upstreamArchived":false,"defaultBranch":null,"latestDefaultBranchCommitAt":null,"metadataCheckedAt":"2026-10-09T01:35:29.205Z"},"progress":[],"sources":[{"label":"Public repository metadata","url":"https://github.com/hotwrist/poc-exploit-prediciting-cpp-srand-and-rand"},{"label":"Discovery query","url":"https://api.github.com/search/repositories?q=%22reverse+engineered%22+in%3Aname%2Cdescription+is%3Apublic+fork%3Afalse+created%3A2024-08-17..2025-10-24&sort=updated&order=desc&per_page=100&page=6"}],"longDescription":"","aliases":[],"originalPlatforms":[],"outputPlatforms":[],"architectures":[],"languages":["C++"],"tags":[],"links":{"website":null,"documentation":null,"releases":null,"buildInstructions":null,"repositories":[],"community":[],"support":[],"issues":[]},"contribution":{"status":"unknown","helpNeeded":[],"url":null,"sourceUrl":null,"checkedAt":null,"prerequisites":"","environments":[],"aiPolicy":"unspecified","aiPolicySourceUrl":null,"aiPolicyConditions":""},"originalAssetsNote":""}}