dsprenkels / randombytes

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

emscripten: Change ENOPKG to ENOSYS #16

Closed dsprenkels closed 5 years ago

dsprenkels commented 6 years ago

ENOPKG is linux-specific, but we want to support more than that. This PR changes the ENOPKG error to ENOSYS (meaning functionality is not available), but is more generic.