Revisit the implementation of random_default_impl for integer to make sure avoid overflows and compiler warnings.
Revisit the implementation of random_default_impl for integer to make sure avoid overflows and compiler warnings.

pasuka/eigen,toastedcrumpets/eigen,ritsu1228/eigen,ritsu1228/eigen,Zefz/eigen,pasuka/eigen,ROCmSoftwarePlatform/hipeigen,ROCmSoftwarePlatform/hipeigen,toastedcrumpets/eigen,TSC21/Eigen,ritsu1228/eigen,pasuka/eigen,ritsu1228/eigen,Zefz/eigen,pasuka/eigen,ROCmSoftwarePlatform/hipeigen,Zefz/eigen,TSC21/Eigen,toastedcrumpets/eigen,Zefz/eigen,ritsu1228/eigen,TSC21/Eigen,pasuka/eigen,toastedcrumpets/eigen,TSC21/Eigen,ROCmSoftwarePlatform/hipeigen