Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.4: Random password widgets may not be random' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Random password widgets may not be random
Authored by: NeuralNet03 on Sep 02, '05 04:15:39PM

Java's not to fault. The Math.random function is a lazy man's random function. The author should be using a Random object, which can be seeded in their constructor (use system time, login time, something unique and changing).



[ Reply to This | # ]
10.4: Random password widgets may not be random
Authored by: nickfitz on Sep 04, '05 01:29:46PM

JavaScript isn't Java. There is absolutely no relation between the two languages, and there is no such class as Random in JavaScript.



[ Reply to This | # ]