VirtualBox

Changeset 49545 in vbox


Ignore:
Timestamp:
Nov 19, 2013 4:04:13 AM (11 years ago)
Author:
vboxsync
Message:

Use rand(3) on Windows. It's not good, but we don't need
cryptographically strong random number for ping id.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/NAT/pxping.c

    r49544 r49545  
    450450
    451451        pcb->guest_id = guest_id;
    452         pcb->host_id = random() & 0xffffUL; /* XXX */
     452#ifdef RT_OS_WINDOWS
     453# define random() (rand())
     454#endif
     455        pcb->host_id = random() & 0xffffUL;
    453456
    454457        pcb->pprev_timeout = NULL;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette