rand_s isn't supported on older Visual C compilers
authorAsanka Herath <asanka@secure-endpoints.com>
Wed, 12 Aug 2009 17:57:11 +0000 (13:57 -0400)
committerJeffrey Altman <jaltman@openafs.org>
Wed, 12 Aug 2009 18:20:49 +0000 (11:20 -0700)
commit9f2eb69899f1c4dba6671fe784ea2dd61e75a7eb
tree19c060ddddac289b4940d5fc1a9b87c86c2ae50d
parenta1d46036fee7134a375d57baf4898ca1af6c27ba
rand_s isn't supported on older Visual C compilers

We still support building on Visual Studio 2003 where rand_s() is
not available.  If we are building on a Visual C compiler prior
to version 15.00, failover to srand()/rand() instead of using
rand_s().

Reviewed-on: http://gerrit.openafs.org/306
Tested-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
src/WINNT/afsd/rpc_srvsvc.c