diff options
Diffstat (limited to 'src/host/layer23/src/mobile/gsm322.c')
-rw-r--r-- | src/host/layer23/src/mobile/gsm322.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/host/layer23/src/mobile/gsm322.c b/src/host/layer23/src/mobile/gsm322.c index ce25cd57..c3485b6a 100644 --- a/src/host/layer23/src/mobile/gsm322.c +++ b/src/host/layer23/src/mobile/gsm322.c @@ -959,9 +959,7 @@ static int gsm322_sort_list(struct osmocom_ms *ms) entries++; } while(entries) { - if (osmo_get_rand_id((uint8_t *) &move, sizeof(move)) != 0) - move = random(); - move = move % entries; + move = random() % entries; i = 0; llist_for_each_entry(temp, &temp_list, entry) { if (rxlev2dbm(temp->rxlev) > -85) { |