Skip to content
Snippets Groups Projects
Commit 552da6ea authored by Hubert Chathi's avatar Hubert Chathi
Browse files

use the correct method to get the random length

parent 128d45cc
No related branches found
No related tags found
No related merge requests found
......@@ -120,7 +120,7 @@ PkDecryption.prototype['free'] = function() {
PkDecryption.prototype['generate_key'] = restore_stack(function () {
var random_length = pk_decryption_method(
Module['_olm_pk_key_length'] // FIXME: wrong method
Module['_olm_pk_generate_key_random_length']
)();
var random_buffer = random_stack(random_length);
var pubkey_length = pk_encryption_method(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment