[Zope-dev] product refresh and random number generation.

Toby Dickenson tdickenson@geminidataloggers.com
Tue, 28 Jan 2003 11:46:13 +0000


On Tuesday 28 January 2003 11:31 am, Romain Slootmaekers wrote:

> I'm having trouble understanding what is happening:

You are storing an instance of the Random class in ZODB, but not telling =
ZODB=20
about changes to its internal state.

>      def next(self):
>          """
>               returns next random number.
>          """
           self._p_changed =3D 1
>          return self.__random.random()



--=20
Toby Dickenson
http://www.geminidataloggers.com/people/tdickenson