Samsung / walrus

WebAssembly Lightweight RUntime
Apache License 2.0
39 stars 10 forks source link

Add random_get WASI function #195

Closed GorogPeter closed 10 months ago

zherczeg commented 10 months ago

Is random returns with 0? Strange.

kulcsaradam commented 10 months ago

For the record: WASI functions return error codes only and have their ,,result'' written into memory. Error code 0 is succes.

GorogPeter commented 10 months ago

Oooops... I forgot about this patch, sorry for not responding. :( Thank you @kulcsaradam for responding.

This test only calls the random_get function without checking its result (I mean the randomness of the numbers).