| 3087 | } |
| 3088 | |
| 3089 | static void |
| 3090 | bbr_randomize_extra_state_time(struct tcp_bbr *bbr) |
| 3091 | { |
| 3092 | uint32_t ran, deduct; |
| 3093 | |
| 3094 | ran = arc4random_uniform(bbr_rand_ot); |
| 3095 | if (ran) { |
| 3096 | deduct = bbr->r_ctl.rc_level_state_extra / ran; |
| 3097 | bbr->r_ctl.rc_level_state_extra -= deduct; |
| 3098 | } |
| 3099 | } |
| 3100 | /* |
| 3101 | * Return randomly the starting state |
| 3102 | * to use in probebw. |
no test coverage detected