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 {
258
258
> gen_std_dist (rand, std_dist);
259
259
#endif
260
260
261
- tr1ns::uniform_real_distribution<> full_dist (0 , ULONG_MAX );
261
+ tr1ns::uniform_real_distribution<> full_dist (0 , 4294967296 );
262
262
#ifdef IMPLEMENT_TR1
263
263
tr1ns::variate_generator <
264
264
tr1ns::mt19937,
@@ -1990,8 +1990,13 @@ namespace Sass {
1990
1990
BUILT_IN (unique_id)
1991
1991
{
1992
1992
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
1995
2000
ss << " u" << std::setfill (' 0' ) << std::setw (8 ) << std::hex << distributed;
1996
2001
return SASS_MEMORY_NEW (ctx.mem , String_Quoted, pstate, ss.str ());
1997
2002
}
You can’t perform that action at this time.
0 commit comments