Keil Logo

Numerics library

B.16 Numerics library

The Arm implementation of the C++ standard library class std::random_device is different from the open-source libc++ implementation.

The Arm® C++ standard library implementation has the following features:

  • For the constructor std::random_device, implementation limitations prevent generating nondeterministic random numbers. The implementation uses a pseudo-random number engine.
  • The default constructor of std::random_device uses the token "pseudorandom".
  • The only valid value of the parameter token of the std::random_device constructor explicit random_device(const string& token) is "pseudorandom".
  • If there is a failure, the type of exceptions that std::random_device constructors throw is std::system_error.
  • The member function result_type operator()() of std::random_device never fails.
Non-ConfidentialPDF file icon PDF version101754_0616_01_en
Copyright © 2019–2021 Arm Limited or its affiliates. All rights reserved. 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.