xref: /llvm-project/libcxx/include/__random/knuth_b.h (revision 368faacac7525e538fa6680aea74e19a75e3458d)
1*344cef66SArthur O'Dwyer //===----------------------------------------------------------------------===//
2*344cef66SArthur O'Dwyer //
3*344cef66SArthur O'Dwyer // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*344cef66SArthur O'Dwyer // See https://llvm.org/LICENSE.txt for license information.
5*344cef66SArthur O'Dwyer // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6*344cef66SArthur O'Dwyer //
7*344cef66SArthur O'Dwyer //===----------------------------------------------------------------------===//
8*344cef66SArthur O'Dwyer 
9*344cef66SArthur O'Dwyer #ifndef _LIBCPP___RANDOM_KNUTH_B_H
10*344cef66SArthur O'Dwyer #define _LIBCPP___RANDOM_KNUTH_B_H
11*344cef66SArthur O'Dwyer 
12*344cef66SArthur O'Dwyer #include <__config>
13*344cef66SArthur O'Dwyer #include <__random/linear_congruential_engine.h>
14*344cef66SArthur O'Dwyer #include <__random/shuffle_order_engine.h>
15*344cef66SArthur O'Dwyer 
16*344cef66SArthur O'Dwyer #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
17*344cef66SArthur O'Dwyer #  pragma GCC system_header
18*344cef66SArthur O'Dwyer #endif
19*344cef66SArthur O'Dwyer 
20*344cef66SArthur O'Dwyer _LIBCPP_BEGIN_NAMESPACE_STD
21*344cef66SArthur O'Dwyer 
22*344cef66SArthur O'Dwyer typedef shuffle_order_engine<minstd_rand0, 256> knuth_b;
23*344cef66SArthur O'Dwyer 
24*344cef66SArthur O'Dwyer _LIBCPP_END_NAMESPACE_STD
25*344cef66SArthur O'Dwyer 
26*344cef66SArthur O'Dwyer #endif // _LIBCPP___RANDOM_KNUTH_B_H
27