-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code Optimization and Security issue fixed #46
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @sentayhu19 ,
Good job so far!
There are some issues that you still need to work on to prepare your project for the final evaluation but you are almost there!
Suggested changes
Check the comments under the review.
lib/index.js
Outdated
result = (0, check_option_1.checkOptions)(result, option); | ||
} | ||
} | ||
return result; | ||
}; | ||
exports.generate = generate; | ||
var compute = function (type, optlen, length) { | ||
var res = ""; | ||
console.log("COMPUTE RUNNNNNNING.....................", length, "TYPE", optlen); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- please remove this
console.log
it shows unnecessary messages while using the package
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @sentayhu19 ,
STATUS: APPROVED ✔️
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
In this PR
Math.random()
fixed by utilizing therandomBytes
compute
function to execute the generation of the random string foralphanumeric
,range
,hex
,alphabet
, andalphanumeric
givenoption length
,characters
, and length` in the asset.