v0.3.0.2-alpha (#347)

This commit is contained in:
KoalaSat 2023-02-17 16:31:42 +00:00 committed by GitHub
commit b9724a41d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -139,8 +139,8 @@ android {
applicationId "com.nostros"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 47
versionName "v0.3.0.1-alpha"
versionCode 48
versionName "v0.3.0.2-alpha"
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
if (isNewArchitectureEnabled()) {

View File

@ -19,7 +19,7 @@ export const generateRandomKey: () => Promise<string> = async () => {
export const generateRandomMnemonic: () => Promise<Record<number, string>> = async () => {
const result: Record<number, string> = {}
for (let index = 0; index < 12; index++) {
const random = await generateSecureRandom(4)
const random = await generateSecureRandom(12)
const totalRandom = random.reduce((sum, current) => sum + current, 0)
const position = totalRandom % wordlist.length
result[index + 1] = wordlist[position]