Question: Implement the generate _ seed function to obtain an appropriate seed value for the random number generator for each process. IMPORTANT: This function must not
Implement the generateseed function to obtain an appropriate seed
value for the random number generator for each process.
IMPORTANT: This function must not seed the random number generator
itself. It just returns a value that would be appropriate to use as a seed.
i The function does not have any parameters.
ii The function must return an unsigned int.
iii. The function must perform the following tasks:
Generate a seed value that will be unique for every process
each time the program is run.
Return the generated seed value.
e Implement the getsocket function to obtain a socket.
i The function does not have any parameters.
ii The function must return an int.
iii. The function must perform the following tasks:
Get a network stream TCP socket.
If there was an error, display an error message indicating the
process ID and a description of the issue based on the errno
value. Return
Return the socket descriptor
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
