dsprenkels / randombytes

A portable C library for generating cypto-secure random bytes
MIT License
96 stars 37 forks source link

Added support for random numbers generated on WASI #34

Closed john-sharratt closed 3 years ago

john-sharratt commented 3 years ago

As a part of a downstream merge request for adding quantum crypto functions to WebAssembly I had to update this function.

The downstream merge request is here: https://github.com/PQClean/PQClean/pull/405#issuecomment-886058591

Essentially this adds support for compiling the random number generator against the wasm32-wasi target.

dsprenkels commented 3 years ago

@john-sharratt Thank you!

Do you have any pointers for me how this code can be tested?