equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of the License "Eclipse Public License v1.0" |
5 * under the terms of the License "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
54 return self; |
54 return self; |
55 } |
55 } |
56 |
56 |
57 void CSystemRandom::GenerateBytesL(TDes8& aDest) |
57 void CSystemRandom::GenerateBytesL(TDes8& aDest) |
58 { |
58 { |
59 iShim->GenerateBytesL(aDest); |
59 TRAPD(error, iShim->GenerateBytesL(aDest)); |
60 } |
60 // This method must leave on low memory conditions. |
|
61 if(error == KErrNoMemory) |
|
62 { |
|
63 User::Leave(error); |
|
64 } |
|
65 } |
61 |
66 |
62 CSystemRandom::CSystemRandom(void) |
67 CSystemRandom::CSystemRandom(void) |
63 { |
68 { |
64 } |
69 } |
65 |
70 |