CCF
Loading...
Searching...
No Matches
include
ccf
js
extensions
math
random.h
Go to the documentation of this file.
1
// Copyright (c) Microsoft Corporation. All rights reserved.
2
// Licensed under the Apache 2.0 License.
3
#pragma once
4
5
#include "
ccf/js/extensions/extension_interface.h
"
6
7
namespace
ccf::js::extensions
8
{
9
// Implements Math.random in an enclave-compatible way
10
class
MathRandomExtension
:
public
ExtensionInterface
11
{
12
public
:
13
MathRandomExtension
() {}
14
15
void
install
(
js::core::Context
& ctx)
override
;
16
};
17
}
ccf::js::core::Context
Definition
context.h:46
ccf::js::extensions::ExtensionInterface
Definition
extension_interface.h:16
ccf::js::extensions::MathRandomExtension
Definition
random.h:11
ccf::js::extensions::MathRandomExtension::install
void install(js::core::Context &ctx) override
Definition
random.cpp:53
ccf::js::extensions::MathRandomExtension::MathRandomExtension
MathRandomExtension()
Definition
random.h:13
extension_interface.h
ccf::js::extensions
Definition
consensus.h:9
Generated by
1.9.8