We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08bf835 commit f9cf6cfCopy full SHA for f9cf6cf
02_functions/modulename.cc
@@ -1,7 +1,7 @@
1
#include <node/v8.h>
2
#include <node/node.h>
3
4
-// STL
+// C standard library
5
#include <cstdlib>
6
#include <ctime>
7
@@ -29,7 +29,8 @@ void RegisterModule(Handle<Object> target) {
29
srand(time(NULL));
30
31
// target is the module object you see when require()ing the .node file.
32
- target->Set(String::NewSymbol("random"), FunctionTemplate::New(Random)->GetFunction());
+ target->Set(String::NewSymbol("random"),
33
+ FunctionTemplate::New(Random)->GetFunction());
34
}
35
36
NODE_MODULE(modulename, RegisterModule);
0 commit comments