Skip to content

Commit

Permalink
eio: make rdrand_task return a list of functions
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Leonard <talex5@gmail.com>
  • Loading branch information
bikallem and talex5 committed Jun 23, 2022
1 parent 1296042 commit 6dd9b26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rng/eio/mirage_crypto_rng_eio.ml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ let periodically_feed_entropy env delta source =
let rdrand_task env delta =
match Entropy.cpu_rng with
| Error `Not_supported -> []
| Ok cpu_rng -> periodic env (cpu_rng None) delta
| Ok cpu_rng -> [ fun () -> periodic env (cpu_rng None) delta ]

let running = ref false

Expand Down

0 comments on commit 6dd9b26

Please sign in to comment.