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

fix(globalpatches) randomseed throws error when seeded in wrong context #1613

Merged
merged 1 commit into from
Sep 14, 2016

Conversation

thibaultcha
Copy link
Member

title says it all

elseif not seed then
if not seed then
if ngx.get_phase() ~= "init_worker" then
ngx.log(ngx.ERR, "math.randomseed() must be called in init_worker")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should actually error('', 2)

@thibaultcha thibaultcha changed the title fix(globalpatches) only log randomseed error when not already seeded fix(globalpatches) randomseed throws error when seeded in wrong context Sep 13, 2016
@subnetmarco subnetmarco added this to the 0.9.2 milestone Sep 13, 2016
@thibaultcha thibaultcha added pr/ready (but hold merge) No more concerns, but do not merge yet (probably a conflict of interest with another PR or release) and removed pr/status/needs review labels Sep 14, 2016
@thibaultcha thibaultcha merged commit e4f0fae into next Sep 14, 2016
@thibaultcha thibaultcha deleted the fix/randomseed-patch branch September 19, 2016 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr/ready (but hold merge) No more concerns, but do not merge yet (probably a conflict of interest with another PR or release)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants