1
Fork 0
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:
Andreas Kling 2019-03-18 04:03:44 +01:00
parent 77a782a67e
commit c24d4b07db
8 changed files with 54 additions and 20 deletions

View file

@ -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;