3 ms·
Seeding with the time makes the outputs predictable to an adversary. If your games are not moving real money based on your RNG (like online poker), you probably
by comicjk 5y ago
Seeding with the time makes the outputs predictable to an adversary. If your games are not moving real money based on your RNG (like online poker), you probably don't have any adversaries trying to guess your random numbers, so you're fine.
See here for an online poker game which actually had this flaw: https://news.ycombinator.com/item?id=7207851 https://news.ycombinator.com/item?id=7207851