FastLED 3.9.15
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_NOEXCEPT
Definition random.h:62
fl::u64 u64
Definition s16x16x4.h:221

References FL_NOEXCEPT, and next_random32_nolock().

+ Here is the call graph for this function: