samedi 25 janvier 2020

Reverse random in java (seed finder) [duplicate]

For a project I'm working on I need to find the seed of a random number with the given information: The last integer output from the seed how many times random.next has been called before (with the implementation java.util.random)

for example, given the integer -1355028732 being the 4th call, the seed would be 1273. I've been looking online for a solution but can't find one, Is this even possible?




Aucun commentaire:

Enregistrer un commentaire