CurryInfo: random-3.0.0 / System.Random.getRandomSeed

definition:
getRandomSeed :: IO Int
getRandomSeed =
  getClockTime >>= \time ->
  getCPUTime >>= \msecs ->
  let (CalendarTime y mo d h m s _) = toUTCTime time
#ifdef __PAKCS__
   in return ((y+mo+d+h+(m+1)*(s+1)*(msecs+1)) `rem` mask)
#else
   in return ((y+mo+d+h+(m+1)*(s+1)*(msecs+1)) `mod` two16)
demand:
no demanded arguments
deterministic:
deterministic operation
failfree:
<FAILING>
indeterministic:
referentially transparent operation
infix:
no fixity defined
iotype:
{() |-> _}
name:
getRandomSeed
precedence:
no precedence defined
result-values:
_
signature:
Prelude.IO Prelude.Int
solution-complete:
operation might suspend on free variables
terminating:
possibly non-terminating
totally-defined:
possibly non-reducible on same data term