mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 08:57:34 +00:00
LibC: add arc4random* using new getrandom syscall
Serenity is really not production ready; I shouldn't have to warn you not to trust the RNG here. This is for compatibility with software expecting the interface. arc4random does expose an annoying flaw with the syscall I want to discuss with Kling though.
This commit is contained in:
parent
7e4e092653
commit
aa42f56210
2 changed files with 30 additions and 0 deletions
|
@ -54,6 +54,10 @@ void srand(unsigned seed);
|
|||
long int random();
|
||||
void srandom(unsigned seed);
|
||||
|
||||
uint32_t arc4random(void);
|
||||
void arc4random_buf(void*, size_t);
|
||||
uint32_t arc4random_uniform(uint32_t);
|
||||
|
||||
typedef struct {
|
||||
int quot;
|
||||
int rem;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue