libuv 1.44.2
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3934 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
3
deps/libuv/docs/code/udp-dhcp/main.c
vendored
3
deps/libuv/docs/code/udp-dhcp/main.c
vendored
@ -53,7 +53,8 @@ uv_buf_t make_discover_msg() {
|
||||
// HOPS
|
||||
buffer.base[3] = 0x0;
|
||||
// XID 4 bytes
|
||||
buffer.base[4] = (unsigned int) random();
|
||||
if (uv_random(NULL, NULL, &buffer.base[4], 4, 0, NULL))
|
||||
abort();
|
||||
// SECS
|
||||
buffer.base[8] = 0x0;
|
||||
// FLAGS
|
||||
|
Reference in New Issue
Block a user