Home / Function/ randomBytes() — netty Function Reference

randomBytes() — netty Function Reference

Architecture documentation for the randomBytes() function in SearchBenchmark.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  ed20694a_f0ee_226b_5e92_c3cd4630636e["randomBytes()"]
  9d9772c6_6c98_049e_d077_4f14f554b382["SearchBenchmark"]
  ed20694a_f0ee_226b_5e92_c3cd4630636e -->|defined in| 9d9772c6_6c98_049e_d077_4f14f554b382
  style ed20694a_f0ee_226b_5e92_c3cd4630636e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

microbench/src/main/java/io/netty/microbench/search/SearchBenchmark.java lines 174–180

    private static byte[] randomBytes(Random rnd, int size, int from, int to) {
        byte[] bytes = new byte[size];
        for (int i = 0; i < size; i++) {
            bytes[i] = (byte) (from + rnd.nextInt(to - from + 1));
        }
        return bytes;
    }

Domain

Subdomains

Frequently Asked Questions

What does randomBytes() do?
randomBytes() is a function in the netty codebase, defined in microbench/src/main/java/io/netty/microbench/search/SearchBenchmark.java.
Where is randomBytes() defined?
randomBytes() is defined in microbench/src/main/java/io/netty/microbench/search/SearchBenchmark.java at line 174.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free