java tweaks

pull/7125/head
Thibault Duplessis 2020-08-16 15:33:42 +02:00
parent 8f602ffa82
commit 68f2a9d038
2 changed files with 1 additions and 2 deletions

View File

@ -147,7 +147,7 @@ public class RatingCalculator {
// step 5.2 - set the initial values of the iterative algorithm to come in step 5.4
double A = a;
double B = 0.0;
double B;
if ( Math.pow(delta, 2) > Math.pow(phi, 2) + v ) {
B = Math.log( Math.pow(delta, 2) - Math.pow(phi, 2) - v );
} else {

View File

@ -18,7 +18,6 @@ package org.mindrot;
// byte manipulation. Details at https://github.com/isaacl/jbcrypt
import java.io.UnsupportedEncodingException;
import java.nio.charset.StandardCharsets;
import java.security.SecureRandom;
import java.util.Arrays;