Raxa/Raxa-JSS — pull request #57 by madanpiyush (2012-05-24 11:36:15+00:00)
Title: RAXAJSS-107 Created & Tested Unique identifier for device

Checks if deviceId is present in localStorage and returns it if available otherwise returns a randomly generated number ( & stores in localStorage as well).

Test checks if
-returned number is 4 digit or not
-returns same deviceId that is stored in localStorage (if it finds it there)
-checks whether number is random or not (comparison done on 20 numbers)