davidbau / seedrandom

seeded random number generator for Javascript
2.04k stars 160 forks source link

fixed a few bugs in the seedrandom.js code #80

Closed BryanSJamesDev closed 1 year ago

BryanSJamesDev commented 1 year ago

1) The function tostring is not defined. It should be toString instead. 2) The variable nodecrypto is not declared. It should be declared using var nodecrypto; at the beginning of the code. 3) There is a missing semicolon at the end of the line t.j = j. 4) The function ARC4 is missing the closing parenthesis and semicolon at the end. 5) The function copy is missing the closing parenthesis and semicolon at the end. 6) The function flatten is missing the closing parenthesis and semicolon at the end. 7) The function mixkey is missing the closing parenthesis and semicolon at the end. 8) The function autoseed is missing the closing parenthesis and semicolon at the end. 9) The function tostring is missing the closing parenthesis and semicolon at the end.

davidbau commented 1 year ago

There is no functionality addressed in this PR.

The diff is mainly changes in formatting and code reorganization. Rejecting due to high risk of introducing a new bugs, with no identified benefits.