I have a piece of Java code: return (int)(seed >>> (48 - bits));
As you can see, it uses the unsigned right shift operator (β>). I am trying to implement this code in ruby, which does not have an unsigned right shift operator, only a signed right shift operator. Since I am not very familiar with the operator β>, I am not quite sure how I will impelemnt it in ruby. I tried to do some searches to find out if anyone had encountered this problem before, but could not find anything suitable. Any help would be greatly appreciated :)
Jonathan edgecombe
source share