Performed first authentication
This commit is contained in:
		
							
								
								
									
										12
									
								
								moneymgr_mobile/lib/utils/string_utils.dart
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								moneymgr_mobile/lib/utils/string_utils.dart
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,12 @@
 | 
			
		||||
import 'dart:math';
 | 
			
		||||
 | 
			
		||||
const _chars = 'AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz1234567890';
 | 
			
		||||
final _rnd = Random();
 | 
			
		||||
 | 
			
		||||
/// Generate random string
 | 
			
		||||
String getRandomString(int length) => String.fromCharCodes(
 | 
			
		||||
  Iterable.generate(
 | 
			
		||||
    length,
 | 
			
		||||
    (_) => _chars.codeUnitAt(_rnd.nextInt(_chars.length)),
 | 
			
		||||
  ),
 | 
			
		||||
);
 | 
			
		||||
							
								
								
									
										3
									
								
								moneymgr_mobile/lib/utils/time_utils.dart
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								moneymgr_mobile/lib/utils/time_utils.dart
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
int secondsSinceEpoch(DateTime time) {
 | 
			
		||||
  return time.millisecondsSinceEpoch ~/ 1000;
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user