--- libaitrpc/src/blob.c 2011/05/02 23:07:55 1.1.2.16 +++ libaitrpc/src/blob.c 2011/05/02 23:11:17 1.1.2.17 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: blob.c,v 1.1.2.16 2011/05/02 23:07:55 misho Exp $ +* $Id: blob.c,v 1.1.2.17 2011/05/02 23:11:17 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -60,7 +60,13 @@ rpc_srv_blobCreate(rpc_srv_t * __restrict srv, int len int f; u_int rnd; +#ifdef HAVE_SRANDOMDEV srandomdev(); +#else + time_t tim; + + srandom((time(&tim) ^ getpid())); +#endif again: rnd = random() % UINT_MAX;