mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:18:11 +00:00
Kernel: Make sure we don't use any FPU/MMX/SSE instructions.
This commit is contained in:
parent
5c68929aa1
commit
2d7cad6a16
6 changed files with 10 additions and 16 deletions
|
@ -91,7 +91,7 @@ int UDPSocket::protocol_allocate_source_port()
|
|||
static const word first_ephemeral_port = 32768;
|
||||
static const word last_ephemeral_port = 60999;
|
||||
static const word ephemeral_port_range_size = last_ephemeral_port - first_ephemeral_port;
|
||||
word first_scan_port = first_ephemeral_port + (word)(RandomDevice::random_percentage() * ephemeral_port_range_size);
|
||||
word first_scan_port = first_ephemeral_port + RandomDevice::random_value() % ephemeral_port_range_size;
|
||||
|
||||
LOCKER(sockets_by_port().lock());
|
||||
for (word port = first_scan_port;;) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue