1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 22 unchanged lines hidden (view full) --- 31 32#ifndef __BASE_RANDOM_HH__ 33#define __BASE_RANDOM_HH__ 34 35#include "sim/host.hh" 36 37long getLong(); 38double getDouble(); |
39double m5random(double r); |
40uint64_t getUniformPos(uint64_t min, uint64_t max); 41int64_t getUniform(int64_t min, int64_t max); 42 43template <typename T> 44struct Random; 45 46template<> struct Random<int8_t> 47{ --- 83 unchanged lines hidden --- |