Replace rand() in n2e_GenerateRandom(), srand() and rand() in EditSortLines() and srand() in n2e_Init(). There are better yet small quality generators: https://github.com/bryc/code/blob/master/jshash. There is also the well known MT generator: http://www.math.sci.hiroshima-u.ac.jp/m-mat/MT/emt.html. Pick any that you like.
Replace
rand()inn2e_GenerateRandom(),srand()andrand()inEditSortLines()andsrand()inn2e_Init(). There are better yet small quality generators: https://github.com/bryc/code/blob/master/jshash. There is also the well known MT generator: http://www.math.sci.hiroshima-u.ac.jp/m-mat/MT/emt.html. Pick any that you like.