source: sasview/src/sas/simulation/geoshapespy/libgeoshapespy/myutil.cc @ 957af0d

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since 957af0d was 79492222, checked in by krzywon, 10 years ago

Changed the file and folder names to remove all SANS references.

  • Property mode set to 100644
File size: 218 bytes
Line 
1/** \file myutil.cc */
2#include <cstdlib>
3#include <ctime>
4#include "myutil.h"
5
6using namespace std;
7
8void seed_rnd() {
9        srand((unsigned)time(NULL)); 
10}
11
12double ran1()
13{
14        return (double)rand() / (double) RAND_MAX;
15}
16
Note: See TracBrowser for help on using the repository browser.