mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-18 23:42:17 +00:00
LibC: Add drand48
, srand48
These functions are required for the `perl5` port's random function to operate correctly. As a bonus, this allows us to remove a nasty patch that replaces `drand48` with `random`.
This commit is contained in:
parent
12e534c8c6
commit
8bc1f1b63e
Notes:
sideshowbarker
2024-07-16 23:57:20 +09:00
Author: https://github.com/tarob0ba
Commit: 8bc1f1b63e
Pull-request: https://github.com/SerenityOS/serenity/pull/20771
Reviewed-by: https://github.com/LucasChollet
Reviewed-by: https://github.com/timschumi ✅
2 changed files with 20 additions and 0 deletions
|
@ -78,6 +78,8 @@ __attribute__((noreturn)) void _Exit(int status);
|
|||
#define RAND_MAX 32767
|
||||
int rand(void);
|
||||
void srand(unsigned seed);
|
||||
double drand48(void);
|
||||
void srand48(long seed);
|
||||
|
||||
long int random(void);
|
||||
void srandom(unsigned seed);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue