]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
lib/misc: cleanup
authorVMware, Inc <>
Mon, 26 Apr 2010 18:22:47 +0000 (11:22 -0700)
committerMarcelo Vanzin <mvanzin@vmware.com>
Tue, 27 Apr 2010 03:48:53 +0000 (20:48 -0700)
code standard cleanup

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/lib/misc/random.c

index abe02778553bdef945431590ef9c3f2979e28d42..a4b4925d5847d09037b97c0d3f0f9cb5f9e6c347 100644 (file)
@@ -285,7 +285,7 @@ Random_Quick(void *context)  // IN/OUT:
 }
 
 
-/**
+/*
  *----------------------------------------------------------------------
  *
  * FastRand --
@@ -309,11 +309,12 @@ Random_Quick(void *context)  // IN/OUT:
  */
 
 int
-FastRand(int seed)
+FastRand(int seed)  // IN:
 {
    uint64 product    = 33614 * (uint64)seed;
    uint32 product_lo = (uint32)(product & 0xffffffff) >> 1;
    uint32 product_hi = product >> 32;
    int32  test       = product_lo + product_hi;
+
    return test > 0 ? test : (test & 0x7fffffff) + 1;
 }