Merge branch 'develop' of https://github.com/Kitzanos/GEPAFIN-BE into develop
This commit is contained in:
@@ -294,11 +294,14 @@ public class Utils {
|
||||
return pattern.matcher(email).matches();
|
||||
}
|
||||
|
||||
// public static String randomKey(Integer range) {
|
||||
// String data = String.valueOf(System.currentTimeMillis());
|
||||
// return data.substring(data.length() - range);
|
||||
//
|
||||
// }
|
||||
public static String randomKey(Integer range) {
|
||||
String data = String.valueOf(System.currentTimeMillis());
|
||||
return data.substring(data.length() - range);
|
||||
return UUID.randomUUID().toString().replace("-", "").substring(0, range);
|
||||
}
|
||||
|
||||
public static String convertObjectToJsonString(Object object) {
|
||||
try {
|
||||
// Check if the object is a string
|
||||
|
||||
Reference in New Issue
Block a user