Forgot your password?
typodupeerror

Comment Random seed to fix? (Score 1) 436

From the article:

Sorting requires a self-consistent definition of ordering.

The article implies the root of the problem is because it introduces inconsistency in comparisons. Could this be fixed by generating a random seed, then replacing all calls to Math.random() with Math.random(seed)?

Slashdot Top Deals

Keep the number of passes in a compiler to a minimum. -- D. Gries

Working...