5ce6a5a147
- add missing casts in RNG initialisation - import an upstream patch to avoid unaligned memory access PR: 265483 Reported by: Robert Clausecker <fuz (at) fuz.su>
20 lines
851 B
C
20 lines
851 B
C
--- linbox/ring/ntl/ntl-lzz_pe.h.orig 2022-07-28 02:52:14 UTC
|
|
+++ linbox/ring/ntl/ntl-lzz_pe.h
|
|
@@ -400,7 +400,7 @@ namespace LinBox
|
|
_size(size), _seed(seed), _ring(F)
|
|
{
|
|
if(_seed == 0)
|
|
- NTL::SetSeed(NTL::to_ZZ(time(0)));
|
|
+ NTL::SetSeed(NTL::to_ZZ(static_cast<long unsigned int>(time(0))));
|
|
else
|
|
NTL::SetSeed(NTL::to_ZZ(static_cast<long unsigned int>(_seed)));
|
|
}
|
|
@@ -411,7 +411,7 @@ namespace LinBox
|
|
|
|
{
|
|
if(_seed == 0)
|
|
- NTL::SetSeed(NTL::to_ZZ(time(0)));
|
|
+ NTL::SetSeed(NTL::to_ZZ(static_cast<long unsigned int>(time(0))));
|
|
else
|
|
NTL::SetSeed(NTL::to_ZZ(static_cast<long unsigned int>(_seed)));
|
|
}
|