colyseus / colyseus-websocket-hx

(Haxe) WebSocket client aimed for all platforms
https://lib.haxe.org/p/colyseus-websocket
MIT License
28 stars 11 forks source link

RandomOs for python target #4

Closed mjedmonds closed 4 years ago

mjedmonds commented 4 years ago

Hi,

The following is missing from the bottom of Crypto.hx

#if python
@:pythonImport("os")
extern class RandomOs
{
    static public function urandom(count:Int):Array<Int>;
}
#end

Otherwise, you get an error that RandomOs is not found.

endel commented 4 years ago

Thanks for reporting @mjedmonds, this has been fixed on the latest version