bugfix in memory middleware
add RND() seed debug output