Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
matrix-org
Olm
Commits
f2168004
Commit
f2168004
authored
Jun 26, 2015
by
Mark Haines
Browse files
Fix javascript bindings to correctly pass the random buffer
parent
84d6fbb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
javascript/axolotl_post.js
View file @
f2168004
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment