2012-05-31 13:33:35 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2007-10-13 02:48:07 +04:00
|
|
|
|
2015-01-06 03:11:26 +03:00
|
|
|
#ifndef nsRandomGenerator_h
|
|
|
|
#define nsRandomGenerator_h
|
2007-10-13 02:48:07 +04:00
|
|
|
|
2012-07-19 08:37:09 +04:00
|
|
|
#include "mozilla/Attributes.h"
|
2015-01-06 03:11:26 +03:00
|
|
|
#include "nsIRandomGenerator.h"
|
2007-10-13 02:48:07 +04:00
|
|
|
|
|
|
|
#define NS_RANDOMGENERATOR_CID \
|
|
|
|
{ \
|
|
|
|
0xbe65e2b7, 0xfe46, 0x4e0f, { \
|
|
|
|
0x88, 0xe0, 0x4b, 0x38, 0x5d, 0xb4, 0xd6, 0x8a \
|
|
|
|
} \
|
2018-11-30 13:46:48 +03:00
|
|
|
}
|
2007-10-13 02:48:07 +04:00
|
|
|
|
|
|
|
#define NS_RANDOMGENERATOR_CONTRACTID "@mozilla.org/security/random-generator;1"
|
|
|
|
|
2015-03-21 19:28:04 +03:00
|
|
|
class nsRandomGenerator final : public nsIRandomGenerator {
|
2007-10-13 02:48:07 +04:00
|
|
|
public:
|
2013-07-19 06:24:14 +04:00
|
|
|
NS_DECL_THREADSAFE_ISUPPORTS
|
2007-10-13 02:48:07 +04:00
|
|
|
NS_DECL_NSIRANDOMGENERATOR
|
2015-01-06 03:11:26 +03:00
|
|
|
|
|
|
|
private:
|
2018-01-25 01:29:08 +03:00
|
|
|
~nsRandomGenerator() {}
|
2007-10-13 02:48:07 +04:00
|
|
|
};
|
|
|
|
|
2015-01-06 03:11:26 +03:00
|
|
|
#endif // nsRandomGenerator_h
|