This file contains 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
#!/usr/bin/env lua | |
math.randomseed(os.time()) | |
function string.random(length) | |
local t = {} | |
for i = 1,length do | |
table.insert(t, math.random(97,122)) | |
end | |
return string.char(unpack(t)) |
This file contains 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
package main | |
import ( | |
"fmt" | |
"log" | |
"unsafe" | |
sophia "github.com/pzhin/go-sophia" | |
) |
This file contains 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
#include <stdio.h> | |
int main() { | |
int optind = 99, optreset = 98; | |
#if defined __GLIBC__ | |
/* glibc needs to have optind set to 0 instead of the "traditional | |
value" of 1 */ | |
optind = 0; | |
#else | |
/* 1 is the value that optind should be initialized to according to |
OlderNewer