random.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /* Copyright 2015 The TensorFlow Authors. All Rights Reserved.
  2. Licensed under the Apache License, Version 2.0 (the "License");
  3. you may not use this file except in compliance with the License.
  4. You may obtain a copy of the License at
  5. http://www.apache.org/licenses/LICENSE-2.0
  6. Unless required by applicable law or agreed to in writing, software
  7. distributed under the License is distributed on an "AS IS" BASIS,
  8. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  9. See the License for the specific language governing permissions and
  10. limitations under the License.
  11. ==============================================================================*/
  12. #ifndef TENSORFLOW_LIB_RANDOM_RANDOM_H_
  13. #define TENSORFLOW_LIB_RANDOM_RANDOM_H_
  14. #include "tensorflow/core/platform/types.h"
  15. namespace tensorflow {
  16. namespace random {
  17. // Return a 64-bit random value. Different sequences are generated
  18. // in different processes.
  19. uint64 New64();
  20. // Return a 64-bit random value. Uses
  21. // std::mersenne_twister_engine::default_seed as seed value.
  22. uint64 New64DefaultSeed();
  23. } // namespace random
  24. } // namespace tensorflow
  25. #endif // TENSORFLOW_LIB_RANDOM_RANDOM_H_