Various utility functions
Implementation of a length-limited O(1) LRU queue. Built for and used by PyPE: http://pype.sourceforge.net Copyright 2003 Josiah Carlson.
Bases: str
Convert binary hash data into printable characters.
Sets the process title so ps and top show more descriptive names. This does not modify argv[0] and only the first 15 characters will be shown.
Returns True on success. We don’t raise exceptions because if something goes wrong here it is not a big deal as this is intended as a nice thing to have for debugging
sha1 hash some bytes.
Generate a likely-unique ID for whatever purpose
data – suffix appended to working data before hashing
Returns a 40-character string with hexidecimal digits representing an SHA hash of the time, a random digit within a constrained range and the data passed.
Validate an activity ID.