Initial import
This commit is contained in:
9
third_party/duktape/duk_api_random.c
vendored
Normal file
9
third_party/duktape/duk_api_random.c
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
* Random numbers
|
||||
*/
|
||||
|
||||
#include "third_party/duktape/duk_internal.h"
|
||||
|
||||
DUK_EXTERNAL duk_double_t duk_random(duk_hthread *thr) {
|
||||
return (duk_double_t) DUK_UTIL_GET_RANDOM_DOUBLE(thr);
|
||||
}
|
||||
Reference in New Issue
Block a user