redo icon indicating copy to clipboard operation
redo copied to clipboard

Change magic number generation

Open Tharre opened this issue 9 years ago • 0 comments

Using rand() for generating the magic numbers is bad because it only guarantees 2^15 different values.

Possible solutions:

  • ship our own random number generator (needless complexity, existing implementations?)
  • don't use random numbers but just increment by 1 (additional state)

Tharre avatar May 24 '15 22:05 Tharre