String function ( int arg0 ) { SecureRandom loc0 = new SecureRandom ( ) ; char [ ] loc1 = new char [ arg0 ] ; loc1 [ 0 ] = letters . charAt ( loc0 . nextInt ( letters . length ( ) ) ) ; for ( int loc2 = 1 ; loc2 < arg0 ; ++ loc2 ) { loc1 [ loc2 ] = ALLOWED_CHARS . charAt ( loc0 . nextInt ( NUMBER_OF_CODEPOINTS ) ) ; } return new String ( loc1 ) ; }
generates a pseudo random string using the allowed characters . concode_field_sep String ALLOWED_CHARS concode_elem_sep int CODESIZE concode_elem_sep int NUMBER_OF_CODEPOINTS concode_elem_sep Pattern CODE_PATTERN concode_elem_sep String letters concode_field_sep boolean isValidCode