Using generic socket for websocket Client implementation
random() functionality for ASF