Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for nextInt (0.14 sec)

  1. src/main/java/org/codelibs/core/net/UuidUtil.java

            buf.append(BASE);
            final int lowTime = (int) (System.currentTimeMillis() >> 32);
            StringUtil.appendHex(buf, lowTime);
            StringUtil.appendHex(buf, RANDOM.nextInt());
            return buf.toString();
        }
    
        private static byte[] getAddress() {
            try {
                return InetAddress.getLocalHost().getAddress();
            } catch (final UnknownHostException ignore) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbTreeConnection.java

                    if ( retries != 1 ) {
                        // backoff, but don't delay the first attempt as there are various reasons that can be fixed
                        // immediately
                        Thread.sleep(500 + RAND.nextInt(1000));
                    }
                }
                catch ( InterruptedException e ) {
                    log.debug("interrupted sleep in send", e);
                }
    
                if ( request != null ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Tue Jul 07 10:50:16 GMT 2020
    - 31K bytes
    - Viewed (0)
  3. src/test/java/jcifs/tests/ReadWriteTest.java

        static final void randBytes ( Random r, byte[] buffer ) {
            // regular nextBytes is not reproducible if the reads are not aligned
            for ( int i = 0; i < buffer.length; i++ ) {
                buffer[ i ] = (byte) r.nextInt(256);
            }
    
        }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 13.2K bytes
    - Viewed (0)
Back to top