mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:57:44 +00:00
IPv4: Add simple pseudorandom ephemeral port allocators for TCP and UDP.
This commit is contained in:
parent
77a782a67e
commit
c24d4b07db
8 changed files with 54 additions and 20 deletions
|
@ -8,6 +8,9 @@ public:
|
|||
RandomDevice();
|
||||
virtual ~RandomDevice() override;
|
||||
|
||||
static int random_value();
|
||||
static float random_percentage();
|
||||
|
||||
private:
|
||||
// ^CharacterDevice
|
||||
virtual ssize_t read(Process&, byte*, ssize_t) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue