equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2002-2007 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Implementation of WlanPRNGenerator inline methods. |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 * %version: 5 % |
|
20 */ |
|
21 |
|
22 extern TUint32 random( void ); |
|
23 |
|
24 inline WlanPRNGenerator::WlanPRNGenerator() : |
|
25 // to keep static code analysers happy. Real initialization below |
|
26 iValue( 0 ) |
|
27 { |
|
28 /// initiliase seed |
|
29 iValue = random(); |
|
30 } |
|
31 |
|
32 inline TUint32 WlanPRNGenerator::Generate() |
|
33 { |
|
34 iValue = ( EMultiplier * iValue ) % EModulus; |
|
35 return iValue; |
|
36 } |