seed48.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/seed48.c
blob: bce7b339fea015aaba454b2b15efdb5a0c1154e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#include <stdlib.h>
#include <string.h>
#include "rand48.h"
unsigned short *seed48(unsigned short *s)
{
	static unsigned short p[3];
	memcpy(p, __seed48, sizeof p);
	memcpy(__seed48, s, sizeof p);
	return p;
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月05日 16:48:04 +0000

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