{"push_id":705352416,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"ce81f60b8756bb7fe3452ca53517044023741d13","before":"8e5d74feee7784d3af8048255542a694c316f63c","commits":[{"sha":"ce81f60b8756bb7fe3452ca53517044023741d13","author":{"email":"ca2e34e1958955302f317311f66bb8462b7e1dce@gmail.com","name":"alexax66"},"message":"andom32: add test cases for taus113 implementation\nWe generated a battery of 100 test cases from GSL taus113 implemention\nand compare the results from a particular seed and a particular\niteration with our implementation in the kernel. We have verified on\n32 and 64 bit machines that our taus113 kernel implementation gives\nsame results as GSL taus113 implementation:\n\n  [    0.147370] prandom: seed boundary self test passed\n  [    0.148078] prandom: 100 self tests passed\n\nThis is a Kconfig option that is disabled on default, just like the\ncrc32 init selftests in order to not unnecessary slow down boot process.\nWe also refactored out prandom_seed_very_weak() as it's now used in\nmultiple places in order to reduce redundant code.\n\nGSL code we used for generating test cases:\n\n  int i, j;\n  srand(time(NULL));\n  for (i = 0; i < 100; ++i) {\n    int iteration = 500 + (rand() % 500);\n    gsl_rng_default_seed = rand() + 1;\n    gsl_rng *r = gsl_rng_alloc(gsl_rng_taus113);\n    printf(\"\\t{ %lu, \", gsl_rng_default_seed);\n    for (j = 0; j < iteration - 1; ++j)\n      gsl_rng_get(r);\n    printf(\"%u, %lu },\\n\", iteration, gsl_rng_get(r));\n    gsl_rng_free(r);\n  }\n\nJoint work with Hannes Frederic Sowa.\n\nCc: Florian Weimer <fweimer@redhat.com>\nCc: Theodore Ts'o <tytso@mit.edu>\nSigned-off-by: Daniel Borkmann <dborkman@redhat.com>\nSigned-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>\nSigned-off-by: David S. Miller <davem@davemloft.net>\n\nOriginal commit: https://github.com/kashifmin/KKernel_yu_msm8916/commit/50389f9205f364d4bd7e74be278849375ee24713","distinct":true,"url":"https://api.github.com/repos/alexax66/KK_kernel_serranove3g/commits/ce81f60b8756bb7fe3452ca53517044023741d13"}]}