4 ms·
Sure. https://github.com/prefab-cloud/prefab-cloud-java/blob/main/client/src/main/java/cloud/prefab/client/internal/HashProvider.java https://github.com/prefab-
by jdwyah 3y ago
Sure. https://github.com/prefab-cloud/prefab-cloud-java/blob/main/client/src/main/java/cloud/prefab/client/internal/HashProvider.java https://github.com/prefab-cloud/prefab-cloud-java/blob/main/... is consistent function that turns a string into a float in the range 0-1.
So if you hash "flagA-user1234" you'll get a number 0-1 and if you compare that to < .3 you'll know whether they should be "in the flag".
Relies on the uniformity of the hashing function.
- renewiltord 3y agoOh of course. Very reasonable. Thank you for source code link. I think I understand now.