#include "libbb.h" #include "../shell/random.h" /* call 'fn' to put data in 'dt' then copy it to generator state */ #define GET_DATA(fn, dt) \ fn(&dt); \ u = (uint32_t *)&dt; \ for (j=0; j 0; buf+=4, count-=4) { value = full_random(&rnd); memcpy(buf, ptr, count >= 4 ? 4 : count); } return save_count; }