]> git.mxchange.org Git - jshop-core.git/commitdiff
added missing javadoc + updated jars
authorRoland Haeder <roland@mxchange.org>
Tue, 29 Sep 2015 08:19:33 +0000 (10:19 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 29 Sep 2015 08:19:33 +0000 (10:19 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

lib/jcore.jar
lib/jcoreee.jar
src/org/mxchange/jshopcore/model/customer/CustomerUtils.java

index 9bfe65594b36e0dc1f2bf12fefe0583a8c3d2b3b..7884f3df59de98ef74951706b221477a588f99cb 100644 (file)
Binary files a/lib/jcore.jar and b/lib/jcore.jar differ
index 7d03abd1451d24fdddb3ed7fac00b82f98a11bc9..621440d1defd7a7b73478a55e38af44a08cbff60 100644 (file)
Binary files a/lib/jcoreee.jar and b/lib/jcoreee.jar differ
index ce15d8f8df538c2327730b25eeb8ff917d9d94a6..7e660fa4053df204fae8a7f53494c155262077b9 100644 (file)
@@ -66,14 +66,16 @@ public class CustomerUtils extends BaseFrameworkSystem {
 
                // Default is found
                boolean isFound = true;
-               long part1 = 0;
-               long part2 = 0;
+
+               // Declare variables
+               long part1;
+               long part2;
 
                // Is the number used?
                while (isFound) {
                        // Both number parts
-                       part1 = Math.round(Math.random() * 100000);
-                       part2 = Math.round(Math.random() * 1000);
+                       part1 = Math.round(Math.random() * 100_000);
+                       part2 = Math.round(Math.random() * 1_000);
 
                        // Generate new number
                        customerNumber = String.format("%s-%s", part1, part2); //NOI18N
@@ -127,7 +129,7 @@ public class CustomerUtils extends BaseFrameworkSystem {
                // Is the number used?
                while (isFound) {
                        // Both number parts
-                       String randString = String.format("%s:%s:%s", Long.toHexString(Math.round(Math.random() * 1000000)), em, customer.getCustomerNumber());
+                       String randString = String.format("%s:%s:%s", Long.toHexString(Math.round(Math.random() * 1_000_000)), em, customer.getCustomerNumber());
 
                        // Generate access key, use SHA512 hashing and BASE64-encoding for strong key generation
                        accessKey = Base64.encodeBase64String(Sha2Crypt.sha512Crypt(randString.getBytes()).getBytes()).substring(0, 100);