Skip to content

Commit b9e7d4d

Browse files
committed
[CI] Test Mac Clang
1 parent d918d31 commit b9e7d4d

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/functions.cpp

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)