This repository was archived by the owner on Oct 24, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ namespace Sass {
258258 > gen_std_dist (rand, std_dist);
259259 #endif
260260
261- tr1ns::uniform_real_distribution<> full_dist (0 , ULONG_MAX );
261+ tr1ns::uniform_real_distribution<> full_dist (0 , 4294967296 );
262262 #ifdef IMPLEMENT_TR1
263263 tr1ns::variate_generator <
264264 tr1ns::mt19937,
@@ -1990,8 +1990,13 @@ namespace Sass {
19901990 BUILT_IN (unique_id)
19911991 {
19921992 std::stringstream ss;
1993- std::uniform_real_distribution<> distributor (0 , 4294967296 ); // 16^8
1994- uint_fast32_t distributed = static_cast <uint_fast32_t >(distributor (rand));
1993+ // std::uniform_real_distribution<> distributor(0, 4294967296); // 16^8
1994+ // uint_fast32_t distributed = static_cast<uint_fast32_t>(distributor(rand));
1995+ #ifdef IMPLEMENT_TR1
1996+ uint_fast32_t distributed = gen_full_dist ();
1997+ #else
1998+ uint_fast32_t distributed = full_dist (rand);
1999+ #endif
19952000 ss << " u" << std::setfill (' 0' ) << std::setw (8 ) << std::hex << distributed;
19962001 return SASS_MEMORY_NEW (ctx.mem , String_Quoted, pstate, ss.str ());
19972002 }
You can’t perform that action at this time.
0 commit comments