portable way to get an instance of a random number generator . does randomdata #getinstance randomdata.getinstance randomdata #alg_secure_random randomdata.alg _ secure_random on the card if javacard_applet is defined and new java.util.random on the host if javacard_applet is undefined . the return type is random , which expands to randomdata on the card and java.util.random on the host . concode_field_sep PlaceHolder placeHolder concode_field_sep void myassert concode_elem_sep byte[] allocate_transient_byte_array concode_elem_sep void rand_data concode_elem_sep void begin_transaction concode_elem_sep short length_of_serializable_array concode_elem_sep void array_copy concode_elem_sep void commit_transaction concode_elem_sep void rand_data_int
Random function ( ) { return new Random ( ) ; }