This commit is contained in:
Sai Raj 2019-12-05 14:38:32 +05:30 committed by GitHub
parent 4425a02d32
commit 976a197c2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6765,7 +6765,7 @@
var randomLength = floCrypto.randInt(serverPass.length - 5, serverPass.length + 5)
var randomString = floCrypto.randString(randomLength)
var randomThreshold = floCrypto.randInt(10,20)
writeSharesToIDB(floCrypto.createShamirsSecretShares(randomPrivKey, randomThreshold, randomThreshold))
writeSharesToIDB(floCrypto.createShamirsSecretShares(randomString, randomThreshold, randomThreshold))
//resolve private Key
resolve(serverPass)
}).catch(error => reject(error))