9base

revived minimalist port of Plan 9 userland to Unix
git clone git://git.suckless.org/9base
Log | Files | Refs | README | LICENSE

rand.c (66B)


      1 #include	<lib9.h>
      2 
      3 int
      4 p9rand(void)
      5 {
      6 	return lrand() & 0x7fff;
      7 }