svn commit: r300384 - head/sys/compat/ndis

Andrey Chernov ache at freebsd.org
Sun May 22 02:04:52 UTC 2016


On 22.05.2016 3:29, Pedro F. Giffuni wrote:
>  static void
>  srand(unsigned int seed)
>  {
>  
> +	if (seed == 0)
> +		seed = 1;
>  	srandom(seed);
>  }

IMHO it is not needed. srandom() already handles seed == 0 case, there
is no point to remap it to another constant.


More information about the svn-src-all mailing list