[PATCH 2/2] random: convert get_random_int/long into get_random_u32/u64

2017-01-22 Thread Jason A. Donenfeld
Many times, when a user wants a random number, he wants a random number of a guaranteed size. So, thinking of get_random_int and get_random_long in terms of get_random_u32 and get_random_u64 makes it much easier to achieve this. It also makes the code simpler. On 32-bit platforms, get_random_int a

[PATCH 2/2] random: convert get_random_int/long into get_random_u32/u64

2017-01-06 Thread Jason A. Donenfeld
Many times, when a user wants a random number, he wants a random number of a guaranteed size. So, thinking of get_random_int and get_random_long in terms of get_random_u32 and get_random_u64 makes it much easier to achieve this. It also makes the code simpler. On 32-bit platforms, get_random_int a

[PATCH 2/2] random: convert get_random_int/long into get_random_u32/u64

2016-12-22 Thread Jason A. Donenfeld
Many times, when a user wants a random number, he wants a random number of a guaranteed size. So, thinking of get_random_int and get_random_long in terms of get_random_u32 and get_random_u64 makes it much easier to achieve this. It also makes the code simpler. On 32-bit platforms, get_random_int a