LibC: Add stubs for {init,set}state

Some port wanted these as it detected we had {,s}random
This commit is contained in:
Bananymous 2026-01-09 22:08:32 +02:00
parent 90deb9fb43
commit 5c9151d3e9
1 changed files with 14 additions and 0 deletions

View File

@ -888,3 +888,17 @@ void srandom(unsigned seed)
{ {
s_random_state.seed(seed); s_random_state.seed(seed);
} }
char* initstate(unsigned seed, char* state, size_t size)
{
(void)seed;
(void)state;
(void)size;
ASSERT_NOT_REACHED();
}
char* setstate(char* state)
{
(void)state;
ASSERT_NOT_REACHED();
}