On 21 October 2012 12:03, LFS <[email protected]> wrote: > Hiya Dave, > What would the line of code look like to reseed it with the epoch thing each > time I call it? > Thanks so much, > > Linda
http://www.sagemath.org/doc/reference/sage/misc/randstate.html says If set_random_seed() is called with no arguments, then a new seed is automatically selected. On operating systems that support it, the new seed comes from os.urandom(); this is intended to be a truly random (not pseudo-random), cryptographically secure number. (Whether it is actually cryptographically secure depends on operating system details that are outside the control of Sage.) I tend to disagree with what's quoted there. The seed will be truely random, but the sequence of numbers will not be. They will still be preudo random. Sage no doubt has endless ways of generating random numbers, and that method might only work for one or more of the RNGs, but not all of them. Dave >> >> > -- > You received this message because you are subscribed to the Google Groups > "sage-support" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > Visit this group at http://groups.google.com/group/sage-support?hl=en. > > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sage-support?hl=en.
