aboutsummaryrefslogtreecommitdiff
path: root/system/include/emscripten.h
diff options
context:
space:
mode:
Diffstat (limited to 'system/include/emscripten.h')
-rw-r--r--system/include/emscripten.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/system/include/emscripten.h b/system/include/emscripten.h
index 4da31ec3..70524835 100644
--- a/system/include/emscripten.h
+++ b/system/include/emscripten.h
@@ -80,6 +80,11 @@ void emscripten_set_canvas_size(int width, int height);
float emscripten_get_now();
/*
+ * Simple random number generation in [0, 1), maps to Math.random().
+ */
+float emscripten_random();
+
+/*
* This macro-looking function will cause Emscripten to
* generate a comment in the generated code.
* XXX This is deprecated for now, because it requires us to