MFp4: reminder that random id code is not reentrant

Supported by:	FreeBSD Foundation
This commit is contained in:
Sam Leffler 2003-11-07 23:31:29 +00:00
parent eb3b7bf69f
commit aab621f060
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=122267

View File

@ -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();