News for hackers. Stuff that matters.
Re:Latacora: Security Programs For Startups by spdustin on Friday September 23, 2016 @06:47PM (#12568490)
The random return used in the comparison passed into an Array.sort() function would depend on the sort algorithm used by the JavaScript engine, since the comparisons being returned aren't "honest". Is it a merge sort, for example? Plus, it's kinda broken because if X > Y for one permutation, it should follow that Y < X if those same values are passed back in, and in this case, they' really not.

MS took advantage of this when selecting a random browser for the browser ballot years ago.

http://www.robweir.com/blog/2010/02/microsoft-random-browser...

There are no comments on this comment yet.