summaryrefslogtreecommitdiffstats
path: root/chrome/common/random.h
blob: 0ad538f83930e620a064a4484bb008c2a1b3d3e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_COMMON_RANDOM_H_
#define CHROME_COMMON_RANDOM_H_
#pragma once

#include <string>

// Generate128BitRandomBase64String returns a string of length 24 containing
// cryptographically strong random data encoded in base64.
std::string Generate128BitRandomBase64String();

#endif  // CHROME_COMMON_RANDOM_H_