aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-06-26 16:16:34 +0100
committerMark Haines <mark.haines@matrix.org>2015-06-26 16:16:34 +0100
commitf2168004a1c7a64e9728fcb59606c4094c1728aa (patch)
tree727b43836f33c6684f557dbe08e60b6887aa5c82
parent84d6fbb0dc0648fbc2bc7b1069be1747382b3d77 (diff)
Fix javascript bindings to correctly pass the random buffer
-rw-r--r--javascript/axolotl_post.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/javascript/axolotl_post.js b/javascript/axolotl_post.js
index 16294fb..570c66f 100644
--- a/javascript/axolotl_post.js
+++ b/javascript/axolotl_post.js
@@ -16,6 +16,7 @@ function random_stack(size) {
var ptr = stack(size);
var array = new Uint8Array(Module['HEAPU8'].buffer, ptr, size);
window.crypto.getRandomValues(array);
+ return ptr;
}
function restore_stack(wrapped) {