Replies: 1 comment
-
OK, I think I figured it out. Since go 1.20 one cannot initialize seed for a global random number generator using |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey,
I'm trying to achieve the repeatable results with
--seed
parameter. If I undersand correctly, toxicity of a given proxy is applied when foloowing condition is met:now, for Seed = 1,
rand.Float32()
gives0.6046603
, so for a toxicity smaller then that is should always go through NoopToxic, however that does not seem to be a case.I've configured a simple http proxy, and gave it the following toxic:
and I'd expect it to always pass, however it's not the case:
![image](https://private-user-images.githubusercontent.com/499405/398343639-a2a7288e-55f4-4d16-beeb-f7ce9f4a7907.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MzQ2MDMsIm5iZiI6MTczODkzNDMwMywicGF0aCI6Ii80OTk0MDUvMzk4MzQzNjM5LWEyYTcyODhlLTU1ZjQtNGQxNi1iZWViLWY3Y2U5ZjRhNzkwNy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwN1QxMzE4MjNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mMjY1MGU4NDIxNTBjYmYyNjJkMWEyYTRiMmY3ZjhmMzQ5ZTEwYmZmZTJlOTNiZWQzYTkzNGYxMGNmNTUwNmVkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.v47nj1m-6PGyxwnDOTQ3MLQC8g2CKuIw0aGyXx6W1b8)
and toxiproxy logs show
what am I missing here?
Beta Was this translation helpful? Give feedback.
All reactions