- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for nextBytes (0.09 sec)
-
guava-tests/test/com/google/common/hash/HashTestUtils.java
random.nextBytes(value); for (PrimitiveSink sink : sinks) { sink.putBytes(value); } } }, PUT_BYTES_INT_INT() { @Override void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { byte[] value = new byte[random.nextInt(128)]; random.nextBytes(value);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 25.5K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/Hashing.java
for (HashCode hashCode : hashCodes) { byte[] nextBytes = hashCode.asBytes(); checkArgument( nextBytes.length == resultBytes.length, "All hashcodes must have the same bit length."); for (int i = 0; i < nextBytes.length; i++) { resultBytes[i] = (byte) (resultBytes[i] * 37 ^ nextBytes[i]); } } return HashCode.fromBytesNoCopy(resultBytes); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jul 19 16:02:36 UTC 2024 - 29.3K bytes - Viewed (0) -
src/main/java/jcifs/smb1/ntlmssp/Type3Message.java
byte[] clientChallenge = new byte[8]; RANDOM.nextBytes(clientChallenge); setLMResponse(getLMv2Response(type2, domain, user, password, clientChallenge)); byte[] clientChallenge2 = new byte[8]; RANDOM.nextBytes(clientChallenge2); setNTResponse(getNTLMv2Response(type2, responseKeyNT, clientChallenge2));
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Fri Mar 22 21:10:40 UTC 2019 - 22.9K bytes - Viewed (0) -
src/main/java/jcifs/ntlmssp/Type3Message.java
} else { // NTLM2 Session Response byte[] clientChallenge = new byte[24]; tc.getConfig().getRandom().nextBytes(clientChallenge); java.util.Arrays.fill(clientChallenge, 8, 24, (byte) 0x00); byte[] ntlm2Response = NtlmUtil.getNTLM2Response(passwordHash, type2.getChallenge(), clientChallenge);
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Tue Jul 07 12:07:20 UTC 2020 - 30.6K bytes - Viewed (0) -
src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java
case 3: case 4: case 5: if ( this.clientChallenge == null ) { this.clientChallenge = new byte[8]; tc.getConfig().getRandom().nextBytes(this.clientChallenge); } return NtlmUtil.getLMv2Response(this.domain, this.username, this.password, chlng, this.clientChallenge); default:
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Tue Jul 07 12:07:20 UTC 2020 - 18.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java
case 3: case 4: case 5: if( clientChallenge == null ) { clientChallenge = new byte[8]; RANDOM.nextBytes( clientChallenge ); } return getLMv2Response(domain, username, password, challenge, clientChallenge); default:
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Fri Mar 22 21:10:40 UTC 2019 - 22.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java
UnsignedBytes.lexicographicalComparatorJavaImpl())) { for (int trials = 10; trials-- > 0; ) { byte[] left = new byte[1 + rnd.nextInt(32)]; rnd.nextBytes(left); byte[] right = left.clone(); assertThat(comparator.compare(left, right)).isEqualTo(0); int i = rnd.nextInt(left.length); left[i] ^= (byte) (1 + rnd.nextInt(255));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 13.4K bytes - Viewed (0) -
src/test/java/jcifs/tests/ReadWriteTest.java
p += w; } log.debug("Write " + length + " took " + ( System.currentTimeMillis() - start )); } 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); } }
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 13.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/ws/WebSocketReaderTest.kt
}.also { expected -> assertThat(expected.message!!).contains("closed") } } private fun binaryData(length: Int): ByteString { val junk = ByteArray(length) random.nextBytes(junk) return junk.toByteString() }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 14.4K bytes - Viewed (0) -
src/main/java/jcifs/config/BaseConfiguration.java
this.localTimeZone = TimeZone.getDefault(); this.random = new SecureRandom(); if ( this.machineId == null ) { byte[] mid = new byte[32]; this.random.nextBytes(mid); this.machineId = mid; } if ( this.nativeOs == null ) { this.nativeOs = System.getProperty("os.name"); } if ( this.flags2 == 0 ) {
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Thu Jan 05 13:06:39 UTC 2023 - 20.4K bytes - Viewed (0)