forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
26
Kha/Tools/linux_arm64/std/eval/luv/Random.hx
Normal file
26
Kha/Tools/linux_arm64/std/eval/luv/Random.hx
Normal file
@ -0,0 +1,26 @@
|
||||
package eval.luv;
|
||||
|
||||
@:forward
|
||||
abstract RandomRequest(Request) to Request {}
|
||||
|
||||
/**
|
||||
System entropy source.
|
||||
|
||||
@see https://aantron.github.io/luv/luv/Luv/Random
|
||||
**/
|
||||
extern class Random {
|
||||
|
||||
static function createRequest():RandomRequest;
|
||||
|
||||
/**
|
||||
Fills the given buffer with bits from the system entropy source.
|
||||
**/
|
||||
static function random(loop:Loop, buffer:Buffer, ?request:RandomRequest, callback:(result:Result<Result.NoData>)->Void):Void;
|
||||
}
|
||||
|
||||
extern class RandomSync {
|
||||
/**
|
||||
Fills the given buffer with bits from the system entropy source.
|
||||
**/
|
||||
static function random(buffer:Buffer):Result<Result.NoData>;
|
||||
}
|
Reference in New Issue
Block a user