randomBytes() — netty Function Reference
Architecture documentation for the randomBytes() function in HpackHeader.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 2f64d97a_dbf8_2ec1_0fc5_38994a609423["randomBytes()"] db6b447d_1fcd_2801_03fc_5bf8c58eff65["HpackHeader"] 2f64d97a_dbf8_2ec1_0fc5_38994a609423 -->|defined in| db6b447d_1fcd_2801_03fc_5bf8c58eff65 1c59000a_4801_98d7_6cce_cb51cafc8405["createHeaders()"] 1c59000a_4801_98d7_6cce_cb51cafc8405 -->|calls| 2f64d97a_dbf8_2ec1_0fc5_38994a609423 style 2f64d97a_dbf8_2ec1_0fc5_38994a609423 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
microbench/src/main/java/io/netty/handler/codec/http2/HpackHeader.java lines 72–83
private static byte[] randomBytes(byte[] bytes, boolean limitToAscii) {
Random r = new Random();
if (limitToAscii) {
for (int index = 0; index < bytes.length; ++index) {
int charIndex = r.nextInt(ALPHABET.length());
bytes[index] = (byte) ALPHABET.charAt(charIndex);
}
} else {
r.nextBytes(bytes);
}
return bytes;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does randomBytes() do?
randomBytes() is a function in the netty codebase, defined in microbench/src/main/java/io/netty/handler/codec/http2/HpackHeader.java.
Where is randomBytes() defined?
randomBytes() is defined in microbench/src/main/java/io/netty/handler/codec/http2/HpackHeader.java at line 72.
What calls randomBytes()?
randomBytes() is called by 1 function(s): createHeaders.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free