libtock/rng.c
static void rng_upcall(__attribute__ ((unused)) int callback_type,
                       int received,
                       __attribute__ ((unused)) int val2,
                       void* ud) {
  struct rng_data* data = (struct rng_data*) ud;
  data->fired    = true;
  data->received = received;
}
// Internal callback for faking synchronous reads
Internal callback for faking synchronous reads
Internal callback for faking synchronous reads
static void rng_upcall(__attribute__ ((unused)) int callback_type,
                       int received,
                       __attribute__ ((unused)) int val2,
                       void* ud) {
  struct rng_data* data = (struct rng_data*) ud;
  data->fired    = true;
  data->received = received;
}
static void rng_upcall ( __attribute__ ( ( unused ) ) int callback_type , int received , __attribute__ ( ( unused ) ) int val2 , void * ud ) { struct rng_data * data = ( struct rng_data * ) ud ; data -> fired = true ; data -> received = received ; }
Internal callback for faking synchronous reads
Internal callback for faking synchronous reads