Skip to main content
1 of 12
ceilingcat
  • 7.7k
  • 2
  • 30
  • 30

#x86/x86_64 machine language for Linux, 15 bytes

0f c7 f0                rdrand %eax
31 c9                   xor    %ecx,%ecx
b1 1a                   mov    $0x1a,%cl
31 d2                   xor    %edx,%edx
f7 f1                   div    %ecx
8d 42 41                lea    0x41(%rdx),%eax
c3                      retq

This requires support for the RDRAND instruction. To test, try something like

#include<stdio.h>
int main(){
  for(;;){
    printf("%c",((int(*)())"\xf\xc7\xf0\x31\xc9\xb1\x1a\x31\xd2\xf7\xf1\x8d\x42\x41\xc3")());
  }
}
ceilingcat
  • 7.7k
  • 2
  • 30
  • 30