]> Pileus Git - ~andy/linux/blobdiff - lib/rbtree_test.c
tcm_vhost: fix pr_err on early kick
[~andy/linux] / lib / rbtree_test.c
index d7f491a5457915a949ebd5cd33863e4d721f9cf0..af38aedbd874f0f2ad4f5411c8bfc2187aa2c738 100644 (file)
@@ -96,8 +96,8 @@ static void init(void)
 {
        int i;
        for (i = 0; i < NODES; i++) {
-               nodes[i].key = prandom32(&rnd);
-               nodes[i].val = prandom32(&rnd);
+               nodes[i].key = prandom_u32_state(&rnd);
+               nodes[i].val = prandom_u32_state(&rnd);
        }
 }
 
@@ -155,7 +155,7 @@ static int rbtree_test_init(void)
 
        printk(KERN_ALERT "rbtree testing");
 
-       prandom32_seed(&rnd, 3141592653589793238ULL);
+       prandom_seed_state(&rnd, 3141592653589793238ULL);
        init();
 
        time1 = get_cycles();