Reputation
Next privilege 125 Rep.
Vote down
Badges
1
Newest
 Supporter
Impact
0 people reached

  • 0 posts edited
  • 0 helpful flags
  • 1 vote cast
Aug
2
awarded  Supporter
Aug
2
comment Creating a small number from a random octet string
Never mind.. floor(s/k)*k == floor(256/140)*140 == 140 - not 1.
Aug
2
comment Creating a small number from a random octet string
i don't see how this is supposed to work. Let's say k = 140, n = 256 and the first x = 139. it'd loop at least once then per pastebin.com/zHxm9LD6. it doesn't seem like it should be looping at all, however, since 139 < 140...