ironsource-aura / ironbeast-android Goto Github PK
View Code? Open in Web Editor NEWAndroid tracking library for IronBeast API
License: Other
Android tracking library for IronBeast API
License: Other
Hi @a8m
Just took a brief gander at the code, and this thing caught my eye.
This issue refers to: https://github.com/ironSource/ironbeast-android/blob/master/ironbeastsdk/src/main/java/io/ironbeast/sdk/BackOff.java#L30
In exponential backoff algorithms its important to select a random number between 0 - 2^n-1, otherwise you are not distributing the retries evenly across multiple clients and end up having mass waves of attack.
See this section from https://en.wikipedia.org/wiki/Exponential_backoff
After c collisions, a random number of slot times between 0 and 2c - 1 is chosen. For the first collision, each sender will wait 0 or 1 slot times. After the second collision, the senders will wait anywhere from 0 to 3 slot times (inclusive). After the third collision, the senders will wait anywhere from 0 to 7 slot times (inclusive), and so forth. As the number of retransmission attempts increases, the number of possibilities for delay increases exponentially.
If I missed the random somewhere please accept my apologies in advance :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.