ProgerXP / Notepad2e

Word highlighting, simultaneous editing, split views, math evaluation, un/grep, comment reformatting, UAC elevation, complete regexps (PCRE), Lua lexers, DPI awareness and more (XP+)
Other
370 stars 52 forks source link

Replace rand() with a better implementation #444

Open ProgerXP opened 1 year ago

ProgerXP commented 1 year ago

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.