|
- #include <strobe.h>
-
- #define roundup(x, y) ((((x) + (y) - 1) / (y)) * (y))
-
- typedef uint32_t rng_word_t;
- extern const rng_word_t rng_save[roundup(32, sizeof(rng_word_t)) / sizeof(rng_word_t)];
-
- void strobe_rng_init(void);
- void strobe_rng_save(void);
-
- static inline void
- bare_strobe_randomize(uint8_t *ptr, ssize_t len)
- {
- int r;
-
- r = strobe_randomize(ptr, len);
- (void)r;
- }
|