socsvn commit: r288388 - soc2015/clord/head/sys/contrib/ficl
clord at FreeBSD.org
clord at FreeBSD.org
Tue Jul 14 16:36:27 UTC 2015
Author: clord
Date: Tue Jul 14 16:36:26 2015
New Revision: 288388
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=288388
Log:
Change rand and srand calls to random and srandom to match libstand functions.
Modified:
soc2015/clord/head/sys/contrib/ficl/vm.c
Modified: soc2015/clord/head/sys/contrib/ficl/vm.c
==============================================================================
--- soc2015/clord/head/sys/contrib/ficl/vm.c Tue Jul 14 15:38:45 2015 (r288387)
+++ soc2015/clord/head/sys/contrib/ficl/vm.c Tue Jul 14 16:36:26 2015 (r288388)
@@ -1234,7 +1234,7 @@
**************************************************************************/
case ficlInstructionRandom:
{
- (++dataTop)->i = rand();
+ (++dataTop)->i = random();
continue;
}
@@ -1245,7 +1245,7 @@
**************************************************************************/
case ficlInstructionSeedRandom:
{
- srand((dataTop--)->i);
+ srandom((dataTop--)->i);
continue;
}
More information about the svn-soc-all
mailing list