mothership-ec / cog

Cog
Other
2 stars 3 forks source link

Improvements to string generator #465

Closed thomasjthomasj closed 8 years ago

thomasjthomasj commented 8 years ago

This PR makes some changes to the string generator:

Resolves https://github.com/mothership-ec/cog/issues/449

kuiche commented 8 years ago

There are a couple of coding points in generateFromUnixRandom() and generateFromOpenSSL(). They are essentially the same code, so can they match as close as possible. There are also a couple of places that need breaklines (between if and where statements).

kuiche commented 8 years ago

Use anon functions for different methods for hint reasons.