commit | aec03a1f136abcd9bf59f4ec7cce9bd490fe8c81 | [log] [tgz] |
---|---|---|
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | Mon Nov 24 14:40:28 2014 +0100 |
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | Tue Dec 02 09:18:19 2014 +0100 |
tree | 8c848d56c7ab8a55695117bdac51f6b47153b7e2 | |
parent | 59ac49dc1fd3b1435ef2eeb0b5daf555a946cde6 [diff] |
sgsn/test: Don't rely on the actual PRNG sequence Currently the expected P-TMSI generated by the SGSN is hard-coded into the test. This adds a dependency on the implementation of rand() and thus the libc used. This breaks the test e.g. on FreeBSD. This patch modifies test_gmm_attach() to srand(1) first, generate the P-TMSI, and finally srand(1) again before starting the test. Sponsored-by: On-Waves ehf