svn commit: r295410 - head/sys/boot/ficl

Pedro F. Giffuni pfg at FreeBSD.org
Mon Feb 8 20:03:16 UTC 2016


Author: pfg
Date: Mon Feb  8 20:03:14 2016
New Revision: 295410
URL: https://svnweb.freebsd.org/changeset/base/295410

Log:
  ficl: Replace rand(3) with random(3).
  
  Be a little more consistent with random(3) and push an
  unsigned value.
  
  Again, this has no effect as this code doesn't get compiled
  for the boot code.

Modified:
  head/sys/boot/ficl/words.c

Modified: head/sys/boot/ficl/words.c
==============================================================================
--- head/sys/boot/ficl/words.c	Mon Feb  8 19:45:55 2016	(r295409)
+++ head/sys/boot/ficl/words.c	Mon Feb  8 20:03:14 2016	(r295410)
@@ -4822,7 +4822,7 @@ WORDKIND ficlWordClassify(FICL_WORD *pFW
 **************************************************************************/
 static void ficlRandom(FICL_VM *pVM)
 {
-    PUSHINT(random());
+    PUSHUNS(random());
 }
 
 


More information about the svn-src-head mailing list