Skip to content

Commit

Permalink
Document that random_get can block.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Mar 28, 2019
1 parent b644bbb commit b918610
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/WASI-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -954,6 +954,9 @@ Inputs:

Write high-quality random data into a buffer.

This function blocks when the implementation is unable to immediately
provide sufficient high-quality random data.

This function may execute slowly, so when large mounts of random
data are required, it's advisable to use this function to seed a
pseudo-random number generator, rather than to provide the
Expand Down

0 comments on commit b918610

Please sign in to comment.