Skip to content

UBsan fix for RNG

Matthieu Schaller requested to merge UBsan_random into master

Add an explicit cast to uint32_t in inl_erand48() to silence a runtime error from the undefined behaviour sanitizer.

Fixes #606 (closed).

I am getting fed up with UBsan reporting this continuously and hence generating too much noise.

Edited by Matthieu Schaller

Merge request reports