Commit 944f6804 authored by Trevor Norris's avatar Trevor Norris Committed by Rod Vagg
Browse files

crypto: remove kMaxLength on randomBytes()

New Buffer implementation allows greater than kMaxLength to be created.
So instead check if the passed value is a valid Smi.

PR-URL: https://github.com/nodejs/io.js/pull/1825


Reviewed-By: default avatarBen Noordhuis <info@bnoordhuis.nl>
parent 86640841
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment