diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 85f18bc1994..7f546ed6718 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -4723,7 +4723,7 @@ void RandomBytes(const FunctionCallbackInfo& args) { // maybe allow a buffer to write to? cuts down on object creation // when generating random data in a loop if (!args[0]->IsUint32()) { - return env->ThrowTypeError("Argument #1 must be number > 0"); + return env->ThrowTypeError("size must be a number >= 0"); } const uint32_t size = args[0]->Uint32Value();