]> mj.ucw.cz Git - libucw.git/blobdiff - lib/temp.c
Modified verbose mode.
[libucw.git] / lib / temp.c
index ce9ab573de9c7e82e301afea31a803775550079d..0b754c104f772153bef1de7077852831014e5a01 100644 (file)
 
 #include "lib.h"
 
-ulg
+u32
 temprand(uns key)
 {
   static int seeded = 0;
-  ulg rand;
+  u32 rand;
 
   if (!seeded)
     {
       seeded = 1;
       srand(getpid());
     }
-  rand = random();
+  rand = random() << 1;
   rand += key * 0xdeadbeef;
   return rand;
 }