Closed mihmul83 closed 4 years ago
I think that maybe to somehow soften the conditions for the Eslint rule "linebreak-style". Because I had problems with it on windows and in the end I made 5 commits for 4 linesof code, that makes me a little sad. Maybe we should add the file .eslintignore in .gitignore?
@mihmul83 line breaks are not a problem, it is a standard in programming and all tools have workaround for windows, for example git have autocrlf
configuration parameter, see: https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration
Also all IDE supports different line ending, most of them have autodetection but try to configure it in IDE preferences.
I am going to land this PR
Squashed and landed, @mihmul83, thanks for your contribution!
Replace Math.random() to cryptographically strong pseudo-random crypto.randomBytes Replace Math.floor to bitwise or