diff options
author | Mark Haines <mark.haines@matrix.org> | 2015-06-26 16:16:34 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2015-06-26 16:16:34 +0100 |
commit | f2168004a1c7a64e9728fcb59606c4094c1728aa (patch) | |
tree | 727b43836f33c6684f557dbe08e60b6887aa5c82 /javascript/axolotl_post.js | |
parent | 84d6fbb0dc0648fbc2bc7b1069be1747382b3d77 (diff) |
Fix javascript bindings to correctly pass the random buffer
Diffstat (limited to 'javascript/axolotl_post.js')
-rw-r--r-- | javascript/axolotl_post.js | 1 |
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) { |