lrand48.c\prng\src - musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/prng/lrand48.c
blob: 07e2b78440f13c6ec5095e82e23cbfded091772e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdlib.h>
#include <inttypes.h>
#include "rand48.h"
long nrand48(unsigned short s[3])
{
	return __rand48_step(s, __seed48+3) >> 17;
}
long lrand48(void)
{
	return nrand48(__seed48);
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月05日 05:02:05 +0000

AltStyle によって変換されたページ (->オリジナル) /