FastLED 3.10.6
Loading...
Searching...
No Matches

◆ generate_nolock() [3/3]

result_type fl::math::random::generate_nolock ( result_type n)
inlineprivate

Definition at line 72 of file random.h.

72 {
73 if (n == 0) return 0;
74 u32 r = next_random32_nolock();
75 fl::u64 p = (fl::u64)n * (fl::u64)r;
76 return (u32)(p >> 32);
77 }
u32 next_random32_nolock() FL_NO_EXCEPT
Definition random.h:62

References fl::FL_NO_EXCEPT, and next_random32_nolock().

+ Here is the call graph for this function: