According to the link, this is being used as a source of entropy to generate random numbers. Fascinating.
http://svn.apache.org/repos/asf/shindig/trunk/features/src/m...
From the file: This code implements a safer random() method that is seeded from screen width/height and (presumably random/unguessable) mouse movement, in an effort to create a better seed for random().
Its aim is to solve the problem of gadgets that are relying on secret RPC tokens to validate identity.
For example, most people on facebook move their pointers to check their notifications/new messages/friend requests. Wouldn't that produce a lot of "not so random" random numbers?
(I am not looking to start a conversation on how random random numbers are, just curious on why they used this specific technique)
That's so simple, yet so brilliant.