xref: /third_party/musl/src/prng/mrand48.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/musl/src/prng/
1570af302Sopenharmony_ci#include <stdlib.h>
2570af302Sopenharmony_ci#include <inttypes.h>
3570af302Sopenharmony_ci#include "rand48.h"
4570af302Sopenharmony_ci
5570af302Sopenharmony_cilong jrand48(unsigned short s[3])
6570af302Sopenharmony_ci{
7570af302Sopenharmony_ci	return (int32_t)(__rand48_step(s, __seed48+3) >> 16);
8570af302Sopenharmony_ci}
9570af302Sopenharmony_ci
10570af302Sopenharmony_cilong mrand48(void)
11570af302Sopenharmony_ci{
12570af302Sopenharmony_ci	return jrand48(__seed48);
13570af302Sopenharmony_ci}
14

Indexes created Thu Nov 07 10:32:03 CST 2024