mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
7176886212
git-svn-id: file:///svn/toku/tokudb@18184 c7de825b-a66e-492c-adef-691d508d4ae1
27 lines
615 B
C
27 lines
615 B
C
/* -*- mode: C; c-basic-offset: 4 -*- */
|
|
#ident "Copyright (c) 2007, 2008 Tokutek Inc. All rights reserved."
|
|
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <toku_assert.h>
|
|
#include <errno.h>
|
|
|
|
long long parsell (char *s) {
|
|
char *end;
|
|
errno=0;
|
|
long long r = strtoll(s, &end, 10);
|
|
assert(*end==0 && end!=s && errno==0);
|
|
return r;
|
|
}
|
|
|
|
int main (int argc, char *const argv[]) {
|
|
long long i;
|
|
assert(argc==3);
|
|
long long lo=parsell(argv[1]);
|
|
long long count=parsell(argv[2]);
|
|
for (i=lo*count; count>0; i++, count--) {
|
|
printf("%lld\t%d\n", i*100, random());
|
|
}
|
|
return 0;
|
|
}
|
|
|