Skip to content

Commit

Permalink
options/posix: Stub jrand48
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennisbonke committed Aug 2, 2024
1 parent 195b55d commit 84a32d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions options/posix/generic/posix_stdlib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ void srand48(long int seed) {
seed48(arr);
}

long jrand48(unsigned short [3]) {
__ensure(!"Not implemented");
__builtin_unreachable();
}

// Borrowed from musl
void srandom(unsigned int seed) {
int k;
Expand Down
1 change: 1 addition & 0 deletions options/posix/include/bits/posix/posix_stdlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ long random(void);
double drand48(void);
double erand48(unsigned short s[3]);
void srand48(long int);
long jrand48(unsigned short s[3])
char *initstate(unsigned int, char *, size_t);
char *setstate(char *);
void srandom(unsigned int);
Expand Down

0 comments on commit 84a32d6

Please sign in to comment.