Skip to content
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 · Fixed by #1105
Closed

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

timhettler opened this issue Apr 14, 2015 · 4 comments · Fixed by #1105

Comments

@timhettler
Copy link

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
Copy link
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
Copy link
Contributor

xzyfer commented Apr 15, 2015

Fixed by #1105

@xzyfer xzyfer closed this as completed Apr 15, 2015
@QuLogic
Copy link
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
Copy link
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants