aboutsummaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-01-15 18:51:31 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-01-20 16:13:01 +0100
commitd8a65536ecc6eae026898822b58f520f5ee25ac7 (patch)
tree8ef08da366039ba63114944da13b195272557fb8 /README
parent87c7ffccea5fb8a579ade220e6e4754f857e4ecc (diff)
sgsn: Fix P-TMSI generator's distance of equal values
Currently sgsn_alloc_ptmsi uses rand() to get a new P-TMSI and then sets to upper 2 MSB. Therefore there is no lower limit of the distance between 2 identical P-TMSI. This patch changes the implementation to discard any random value above 2^30 and to generate a new random number in that case until a fitting number is found (or a repetition limit is reached). This way, all number below 2^30 within the PRNG's period are used. Ticket: OW#1362 Sponsored-by: On-Waves ehf
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions