New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

random() function returns same result if used multiple times #1104

Closed
timhettler opened this Issue Apr 14, 2015 · 4 comments

Comments

Projects
None yet
3 participants
@timhettler

timhettler commented Apr 14, 2015

See: http://sassmeister.com/gist/8c277f17fb73185cb767

Random function seems to return the same result, regardless of scope.

If you change the compiler to ruby sass, each invocation of random() returns a different result.

@xzyfer

This comment has been minimized.

Contributor

xzyfer commented Apr 15, 2015

Thanks for the report @timhettler. There has been a fix for this bug which as caused a different bug with random. I've labelled this a regression and update the specs - sass/sass-spec#328.

This will be fixed in 3.2.0.

@xzyfer

This comment has been minimized.

Contributor

xzyfer commented Apr 15, 2015

Fixed by #1105

@xzyfer xzyfer closed this Apr 15, 2015

@QuLogic

This comment has been minimized.

Contributor

QuLogic commented Apr 15, 2015

FYI, if you add Fixes #1105 to the commit message, GitHub will auto-close this ticket once it's merged to master.

@xzyfer

This comment has been minimized.

Contributor

xzyfer commented Apr 15, 2015

Thanks @QuLogic. We usually do it in the PR rather than cluttering the git history. I simply forgot as I was multi tasking whilst writing that PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment