summaryrefslogtreecommitdiff
path: root/klibc/klibc/lrand48.c
blob: 8c0a3de176709b1dc5b38f279e23d7a4ba604235 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*
 * lrand48.c
 */

#include <stdlib.h>
#include <stdint.h>

unsigned short __rand48_seed[3]; /* Common with mrand48.c, srand48.c */

long lrand48(void)
{
  return (uint32_t)jrand48(__rand48_seed) >> 1;
}