Packages that use RandomSource
Package
Description
Core I2P package providing fundamental interfaces, version information, and entry points to essential I2P services, centered on I2PAppContext.
NTCP2, the TCP transport: framed, ratchet-encrypted and mutually authenticated connections between routers.
General utility classes shared across the core libraries and the router.
I2P version of the Snark BitTorrent client, enhanced for I2P: peers are I2P destinations, torrents can be served anonymously as hidden services, and metadata carries I2P-specific comment fields.
BitTorrent distributed hash table (DHT) implementation following the Mainline protocol, for trackerless peer discovery.
Uses of RandomSource in net.i2p
Fields in net.i2p declared as RandomSourceModifier and TypeFieldDescriptionprivate RandomSourceI2PAppContext._randomThe context's secure random source, created on demand.Methods in net.i2p that return RandomSourceModifier and TypeMethodDescriptionI2PAppContext.random()The random source for this context, created on first use.Uses of RandomSource in net.i2p.router.transport.ntcp
Methods in net.i2p.router.transport.ntcp with parameters of type RandomSourceModifier and TypeMethodDescription(package private) static EventPumper.InboundFloodDecisionEventPumper.evaluateInboundFlood(long now, int rawCurrentCount, int rawLastCount, long periodStart, boolean hasCapacity, int maxConnections, int currentConnections, RandomSource random) Decide whether an inbound NTCP connection should be probabilistically rejected because the accept rate is spiking well above the recent baseline while the router is already heavily loaded with connections.Uses of RandomSource in net.i2p.util
Subclasses of RandomSource in net.i2p.utilMethods in net.i2p.util that return RandomSourceModifier and TypeMethodDescriptionstatic RandomSourceRandomSource.getInstance()Singleton for whatever PRNG i2p uses.Uses of RandomSource in org.klomp.snark
Fields in org.klomp.snark declared as RandomSourceModifier and TypeFieldDescriptionprivate final RandomSourcePeerCoordinator._randomRandom source for peer and piece selection.Uses of RandomSource in org.klomp.snark.dht
Methods in org.klomp.snark.dht with parameters of type RandomSourceModifier and TypeMethodDescriptionstatic NIDNodeInfo.generateNID(Hash h, int p, RandomSource random) Generate a secure NID that matches the Hash and port.