davidbau / seedrandom

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

Check for hasOwnProperty in flatten(). #36

Closed iliabylich closed 7 years ago

davidbau commented 7 years ago

Ilya - did the lack of a hasOwnProperty check cause a problem for your seeding in practice?

davidbau commented 7 years ago

(my reasoning for not including the hasOwnProperty check is that, when a seed object is passed, it is fine to consider inherited properties as part of the state to include in the entropy).