URI:
       tfastrand.c - plan9port - [fork] Plan 9 from user space
  HTML git clone git://src.adamsgaard.dk/plan9port
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
       tfastrand.c (256B)
       ---
            1 #include        <u.h>
            2 #include        <libc.h>
            3 #include        <libsec.h>
            4 
            5 /*
            6  *  use the X917 random number generator to create random
            7  *  numbers (faster than truerand() but not as random).
            8  */
            9 ulong
           10 fastrand(void)
           11 {
           12         ulong x;
           13 
           14         genrandom((uchar*)&x, sizeof x);
           15         return x;
           16 }