Files
sdk/runtime/bin/crypto.h
T
Zachary Anderson c75a817ee0 Fixes some memory leaks in //runtime/bin
Also some style cleanups.

Decided to fix these leaks by using Dart_ScopeAllocate
instead of malloc and new. Leaks are noted in the CL.

I haven't finished looking over all the code in
//runtime/bin yet, but this CL was getting big.

Review URL: https://codereview.chromium.org/1781883002 .
2016-03-14 11:08:52 -07:00

28 lines
582 B
C++

// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#ifndef BIN_CRYPTO_H_
#define BIN_CRYPTO_H_
#include "bin/builtin.h"
#include "bin/utils.h"
namespace dart {
namespace bin {
class Crypto {
public:
static bool GetRandomBytes(intptr_t count, uint8_t* buffer);
private:
DISALLOW_ALLOCATION();
DISALLOW_IMPLICIT_CONSTRUCTORS(Crypto);
};
} // namespace bin
} // namespace dart
#endif // BIN_CRYPTO_H_