Sorry I didn't put enough details on my last question, I didn't expect that there is really lots of factors, so most answers were left for speculations. In this question, I will give the scenario I am looking at:
This is the code
//seed is 64xF Hex //example 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef var extra = 'something-1' var hmacSeed = createHmac('sha512', seed); var hmacSeedWithExtra = hmaxSeed.update(extra).digest('hex'); //get first 5 digits of the hex var first5hex = hmacSeedWithExtra.substring(0, 5); //convert first 5 hex to integer var first5 = parseInt(first5hex , 16); //random is var random = (result % 10000) / 100;
This should produce a number between 0 and 100, if it is larger, we try with next 5 digits of the hash.
so my question, is this sort of system predictable? given we don't know the seed, but only the extra 'something-1', 'something-2'.... Is having the first 100 or even 1000 generated numbers help knowing what comes next? or even knowing the range of what comes next?
Please if you think there is still missing information, don't submit an answer, and just put a comment, so I can update the question