MFp4: reminder that random id code is not reentrant
Supported by: FreeBSD Foundation
This commit is contained in:
parent
eb3b7bf69f
commit
aab621f060
@ -186,6 +186,7 @@ ip_randomid(void)
|
||||
int i, n;
|
||||
struct timeval time;
|
||||
|
||||
/* XXX not reentrant */
|
||||
getmicrotime(&time);
|
||||
if (ru_counter >= RU_MAX || time.tv_sec > ru_reseed)
|
||||
ip_initid();
|
||||
|
Loading…
x
Reference in New Issue
Block a user