diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-02-07 08:08:24 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2018-02-08 15:33:42 -0500 |
commit | 6976570d670e4053f026d380cfe5397a0a8ed139 (patch) | |
tree | 29abbf0f904cf1a12e7299b270cf59f1e22c3be3 /include/linux/random.h | |
parent | a9f5937a9764003f3c88ccff4f92da259f025674 (diff) |
Update bcachefs sources to d5e561b3cc bcachefs: BCH_DATA ioctl
Diffstat (limited to 'include/linux/random.h')
-rw-r--r-- | include/linux/random.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/random.h b/include/linux/random.h index 243c0602..90fe5749 100644 --- a/include/linux/random.h +++ b/include/linux/random.h @@ -29,6 +29,11 @@ static inline void get_random_bytes(void *buf, int nbytes) BUG_ON(getrandom(buf, nbytes, 0) != nbytes); } +static inline void prandom_bytes(void *buf, int nbytes) +{ + return get_random_bytes(buf, nbytes); +} + #define get_random_type(type) \ static inline type get_random_##type(void) \ { \ |