News for hackers. Stuff that matters.
Re:Latacora: Security Programs For Startups by ssalazar on Saturday September 24, 2016 @04:53PM (#12572591)
From https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...:

> compareFunction(a, b) must always return the same value when given a specific pair of elements a and b as its two arguments. If inconsistent results are returned then the sort order is undefined.

It doesn't really matter what Math.random() is producing when the sort algorithm is undefined.

There are no comments on this comment yet.