As I understand it Math.random() self seeds based on the system time (and/or possibly other things), but surely this can't be very random. Could the results returned be made completely random (from the point of view of a computer not being able to crack the sequence) by simply calling Math.random() each time the mouse moves (or the accelerometer in a phone) to advance the sequence, thus ensuring non-repeatability. Or is this not a smart solution?
Aucun commentaire:
Enregistrer un commentaire