This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta name="description" content="Proof of concept doing arbitrary precision calcs instead of a lookup table for SHA512" /> | |
| <meta charset="utf-8"> | |
| <title>JS Bin</title> | |
| <!-- <script type="text/javascript" src='//cdnjs.cloudflare.com/ajax/libs/curl/0.7.3/curl-for-jQuery/curl.js'></script> --> | |
| <script type="text/javascript"> | |
| function primes() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| maxfd = sysconf(_SC_OPEN_MAX); | |
| for (fd = 0; fd < maxfd; ++fd) { | |
| if ((fd == pipefd[1]) || (fd == STDOUT_FILENO) || (fd == STDERR_FILENO)) { | |
| continue; | |
| } | |
| close(fd); | |
| } | |
| fd = open("/dev/null", O_RDWR); |