Guest User

Untitled

a guest
Jul 22nd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. #include <stdio.h>
  2. typedef unsigned int uint128_t __attribute__((mode(TI)));
  3.  
  4. int main()
  5. {
  6. uint128_t holybuffalobatman;
  7. srand(0xDEADBEEF);
  8. rand();
  9.  
  10. holybuffalobatman |= (unsigned int)rand();
  11. holybuffalobatman <<= 32;
  12. holybuffalobatman |= (unsigned int)rand();
  13. holybuffalobatman <<= 32;
  14. holybuffalobatman |= (unsigned int)rand();
  15. holybuffalobatman <<= 32;
  16. holybuffalobatman |= (unsigned int)rand();
  17.  
  18. printf("0x%016llx%016llx\n", (unsigned long long)(holybuffalobatman >> 64), (unsigned long long)holybuffalobatman);
  19. }
Add Comment
Please, Sign In to add comment